Source for file DBMS_FIELD_DBMS_FORMWHERE.phpclass

Documentation is available at DBMS_FIELD_DBMS_FORMWHERE.phpclass

  1. <?php
  2. /**
  3.   * Class file DBMS_FIELD_DBMS_FORMWHERE.phpclass
  4.   *
  5.   * @project    Open CSP-Management
  6.   * @package    dbms_field
  7.   * @category   blob
  8.   *
  9.   * @author     Peter Krebs <p.krebs@wpus.at>
  10.   * @copyright  (c) 2005 by Wurm & Partner Unternehmensservice GmbH
  11.   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  12.   *
  13.   * @since pk-05-10-04
  14.   *
  15.   ***/
  16.  
  17.  
  18. if (!class_exists("DBMS_FIELD_SQLSTATEMENT")) {
  19.     require_once dirname(__FILE__)._OCSP_DIRSEP_."DBMS_FIELD_SQLSTATEMENT.phpclass";
  20. }
  21.  
  22. /**
  23.   * Class DBMS_FIELD_DBMS_FORMWHERE
  24.   *
  25.   * @project    Open CSP-Management
  26.   * @package    dbms_field
  27.   * @category   blob
  28.   *
  29.   * @author     Peter Krebs <p.krebs@wpus.at>
  30.   * @copyright  (c) 2005 by Wurm & Partner Unternehmensservice GmbH
  31.   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  32.   *
  33.   * @since pk-05-10-04
  34.   *
  35.   ***/
  36.     var $className     = "DBMS Form Where-Statement";
  37.     
  38.     /**
  39.       * source file of the class
  40.       *
  41.       * @var string $classSrcFile 
  42.       ***/
  43.     var $classSrcFile=__FILE__;
  44.  
  45.     
  46.     var $isSearchable  = FALSE;
  47.     var $nlToBr        = FALSE;
  48.     var $allowSQL      = TRUE;
  49.  
  50.     /**
  51.       * column name of the form id
  52.       * @var string $myFormIdCol 
  53.       ***/
  54.     protected $myFormIdCol="FRM_ID";
  55.  
  56.  
  57.        /**
  58.       * returns an array of field to bie shown in the edit form
  59.       * by using editTbl_echoForm
  60.       *
  61.       * the array is in the form:
  62.       *
  63.       * <code>
  64.       * [_sectionName_]
  65.       *      [TITLE] -> string
  66.       *      [_rowName_]
  67.       *         [FLDLAB]  (complete html code with <td></td>)
  68.       *         [FLDVAL] (complete html code with <td></td>)
  69.       * </code>
  70.       *
  71.       * @param boolean $debug 
  72.       *
  73.       * @returns array
  74.       *
  75.       * @since pk-07-01-09
  76.       *
  77.       ***/
  78.     function editTbl_getFieldEditArr($debug=FALSE
  79.        {
  80.            $arr_ret=parent::editTbl_getFieldEditArr($debug);
  81.            $arr_ret['DBMS_FORM']['TITLE']="Formular:";
  82.            $arr_ret['DBMS_FORM']['FLD_FORMIDCOL']=array(
  83.                    'FLDLAB'=>"Formular ID Column:",
  84.                    'FLDVAL'=>"<input name=\"myFormIdCol\" value=\"".$this->myFormIdCol."\" size=\"40\" />"
  85.            
  86.                );
  87.                
  88.            return $arr_ret;
  89.             
  90.     }
  91.     
  92.     function save({
  93.         $ret parent::save();
  94.         $this->myFormIdCol      = $_POST['myFormIdCol'];
  95.         return $ret;
  96.     }
  97.  
  98.     /**
  99.       * returns the html code for a editable formular element
  100.       *
  101.       * @param mixed $aValue the value to set
  102.       * @param string $arrName 
  103.       * @param string $nameAdd  append something to name like "[VALUE]" for search forms
  104.       *
  105.       * @return string 
  106.       *
  107.       * @since pk-04-10-05
  108.       *
  109.       ***/
  110.     function getInputTag($aValue,$arrName="DBVAL",$nameAdd="",$debug=FALSE{
  111.         if ($debugecho "<p><b>DBMS_FIELD_DBMS_FORMWHERE::getInputTag(\$aValue,$arrName,$nameAdd,...)</b> (".get_class($this).")</p>";
  112.  
  113.         $tag=parent::getInputTag($aValue,$arrName,$nameAdd,$debug);
  114.  
  115.  
  116.         return $tag;
  117.  
  118.     }
  119.  
  120. // end class DBMS_FIELD_SQLSTATEMENT
  121. ?>

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