Source for file DBMS_FIELD_MODULESELECT.phpclass

Documentation is available at DBMS_FIELD_MODULESELECT.phpclass

  1. <?php
  2. /**
  3.   * Class file DBMS_FIELD_MODULESELECT.phpclass
  4.   *
  5.   * @project    Open CSP-Management
  6.   * @package    dbms_field
  7.   * @category   int
  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-08-06-14
  13.   * @version $Id: DBMS_FIELD_MODULESELECT.phpclass,v 1.1 2008/06/14 09:50:39 pitlinz Exp $
  14.   */
  15.  
  16. pcf_require_class('DBMS_FIELD_FOREIGNKEY',dirname(__FILE___OCSP_DIRSEP_ "DBMS_FIELD_FOREIGNKEY.phpclass");
  17.  
  18.  
  19. /**
  20.   * Class file DBMS_FIELD_MODULESELECT.phpclass
  21.   *
  22.   * @project    Open CSP-Management
  23.   * @package    dbms_field
  24.   * @category   int
  25.   *
  26.   * @author     Peter Krebs <pitlinz@users.sourceforge.net>
  27.   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  28.   *
  29.   * @since pk-08-06-14
  30.   * @version $Id: DBMS_FIELD_MODULESELECT.phpclass,v 1.1 2008/06/14 09:50:39 pitlinz Exp $
  31.   */
  32.     /**
  33.       * source file of the class
  34.       *
  35.       * @var string $classSrcFile 
  36.       * @since pk-05-01-20
  37.       ***/
  38.     protected $classSrcFile=__FILE__;
  39.     
  40.     protected $className      = "Module Select List";
  41.     
  42.     /**
  43.      * lookup table
  44.      *
  45.      * @var string $lookupTable 
  46.      */
  47.     protected $lookupTable     = "T_MOD_MODULES";
  48.     
  49.     
  50.     protected $lookupShowField = "CONCAT(MOD_NAME,' (',MOD_PREFIX,')')";
  51.     protected $lookupField     = "MOD_ID";
  52.     protected $lookupSort      = "MOD_PREFIX";
  53.     protected $showNullOption  = FALSE;
  54.  
  55.     /**
  56.      * type of client (CTY_ID)
  57.      *
  58.      * @var int $ctyId 
  59.      */
  60.     protected $ctyId           = 0;
  61.  
  62.  
  63.     /**
  64.       * returns an array of field to bie shown in the edit form
  65.       * by using editTbl_echoForm
  66.       *
  67.       * the array is in the form:
  68.       *
  69.       * <code>
  70.       * [_sectionName_]
  71.       *      [TITLE] -> string
  72.       *      [_rowName_]
  73.       *         [FLDLAB]  (complete html code with <td></td>)
  74.       *         [FLDVAL] (complete html code with <td></td>)
  75.       * </code>
  76.       *
  77.       * @param boolean $debug 
  78.       *
  79.       * @returns array
  80.       *
  81.       * @since pk-06-04-26
  82.       * @version pk-06-04-29
  83.       *
  84.       */
  85.     function editTbl_getFieldEditArr($debug=FALSE{
  86.         if ($debugechoDebugMethod(__FILE__,get_class($this),"DBMS_FIELD_MODULESELECT::editTbl_getFieldEditArr","",0);
  87.         $a_ret=parent::editTbl_getFieldEditArr($debug);
  88.  
  89.         $a_ret['LAYOUT']['FLD_SIZE']=NULL;      // unset parent field
  90.         $a_ret['LAYOUT']['FLD_INPUTADD']=NULL;  // unset parent field
  91.  
  92.         $a_ret['DBLOOKUP']['FLD_LUTBL']['FLDVAL']="T_MOD_MODULES";
  93.         $a_ret['DBLOOKUP']['FLD_VALFLD']['FLDVAL']="MOD_ID";
  94.             
  95.         unset($a_ret['DBLOOKUP']['FLD_VALFLD']);
  96.  
  97.  
  98.         return $a_ret;
  99.     }
  100.  
  101.  
  102.     function save({
  103.         $ret=parent::save();
  104.  
  105.         $this->lookupTable      = "T_MOD_MODULES";
  106.         $this->lookupField      = "MOD_ID";
  107.         $this->lookupSort       = "";
  108.  
  109.  
  110.         return $ret;
  111.     }
  112. }
  113. ?>

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