Source for file DBMS_FIELD_CMS_MENUCLASSSELECT.phpclass

Documentation is available at DBMS_FIELD_CMS_MENUCLASSSELECT.phpclass

  1. <?php
  2. /**
  3.   * Class file DBMS_FIELD_CMS_MENUCLASSSELECT.phpclass
  4.   *
  5.   * @project    Open CSP-Management
  6.   * @package    dbms_field
  7.   * @category   varchar
  8.   *
  9.   * @author     Peter Krebs <pitlinz@users.sourceforge.net>
  10.   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  11.   *
  12.   * @since pk-05-11-14
  13.   * @version $Id: DBMS_FIELD_CMS_MENUCLASSSELECT.phpclass,v 1.2 2008/06/14 09:50:39 pitlinz Exp $
  14.   */
  15.  
  16. pcf_require_class('DBMS_FIELD_DBSELECTLIST',dirname(__FILE__"/DBMS_FIELD_DBSELECTLIST.phpclass");
  17.  
  18. /**
  19.   * Class DBMS_FIELD_CMS_MENUCLASSSELECT
  20.   *
  21.   * @project    Open CSP-Management
  22.   * @package    dbms_field
  23.   * @category   any
  24.   *
  25.   * @author     Peter Krebs <pitlinz@users.sourceforge.net>
  26.   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  27.   * 
  28.   * @since pk-05-11-14
  29.   * @version $Id: DBMS_FIELD_CMS_MENUCLASSSELECT.phpclass,v 1.2 2008/06/14 09:50:39 pitlinz Exp $
  30.   */
  31. {
  32.  
  33.     /**
  34.       * source file of the class
  35.       *
  36.       * @var string $classSrcFile 
  37.       * @since pk-05-01-11
  38.       */
  39.     protected $classSrcFile=__FILE__;    
  40.     
  41.     /**
  42.      * class Name
  43.      *
  44.      * @var string 
  45.      */
  46.     protected $className       = "CMS menuclass";
  47.  
  48.      /**
  49.        * a sql query to get data array
  50.        * @var string $query 
  51.        ***/
  52.       protected $query           = "SELECT MEN_OBJCLASS,MET_TITLE FROM T_CMS_MENUTYPE ORDER BY MET_ISDEFAULT DESC";
  53.          
  54.  
  55.     /**
  56.       * returns an array of field to bie shown in the edit form
  57.       * by using editTbl_echoForm
  58.       *
  59.       * the array is in the form:
  60.       *
  61.       * <code>
  62.       * [_sectionName_]
  63.       *      [TITLE] -> string
  64.       *      [_rowName_]
  65.       *         [FLDLAB]  (complete html code with <td></td>)
  66.       *         [FLDVAL] (complete html code with <td></td>)
  67.       * </code>
  68.       *
  69.       * @param boolean $debug 
  70.       *
  71.       * @returns array
  72.       *
  73.       * @version pk-08-06-14
  74.       */
  75.     function editTbl_getFieldEditArr($debug=FALSE{
  76.         if ($debugechoDebugMethod(__FILE__,get_class($this),"DBMS_FIELD_DBSELECTLIST::editTbl_getFieldEditArr","",0);
  77.         $a_ret=parent::editTbl_getFieldEditArr($debug);
  78.  
  79.         unset($a_ret['SELECT']['FLD_VALQUERY']);
  80.  
  81.         return $a_ret;
  82.     }    
  83.     
  84.     /**
  85.       * save the filed definition form
  86.       * fix query to the init value
  87.       *
  88.       * @return bool 
  89.       */
  90.     function save(
  91.     {
  92.         $b_ret=parent::save();
  93.  
  94.         $this->query="SELECT MEN_OBJCLASS,MET_TITLE FROM T_CMS_MENUTYPE ORDER BY MET_ISDEFAULT DESC";
  95.         return $b_ret;
  96.     }    
  97.  
  98.     
  99.     
  100.  
  101. // end class DBMS_FIELD_CMS_MENUCLASSSELECT
  102. ?>

Documentation generated on Thu, 08 Jan 2009 17:40:45 +0100 by phpDocumentor 1.4.0a2