Source for file DBMS_FIELD_STRINGIDENTIFIER.phpclass
Documentation is available at DBMS_FIELD_STRINGIDENTIFIER.phpclass
  * Class file DBMS_FIELD_STRINGIDENTIFIER.phpclass  
  * @author     Peter Krebs (pk)<pitlinz@users.sourceforge.net>  
  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License  
  * Class DBMS_FIELD_STRINGIDENTIFIER  
  * @author     Peter Krebs (pk)<p.krebs@lvus.at>  
  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License  
        * source file of the class  
        * @var string $classSrcFile   
      * returns an array of field to bie shown in the edit form  
      * by using editTbl_echoForm  
      * the array is in the form:  
      *         [FLDLAB]  (complete html code with <td></td>)  
      *         [FLDVAL] (complete html code with <td></td>)  
           $arr_ret = 
parent::editTbl_getFieldEditArr($debug);  
           $arr_ret['VALCHECKS']['INVALIDCHARS'] = 
array(  
                   'FLDLAB' => 
t_admin('Ungültige Zeichen'),  
           $arr_ret['VALCHECKS']['REPLACECHAR'] = 
array(  
                   'FLDLAB' => 
t_admin('Ersetzungszeichen'),  
                   'FLDVAL' => 
"<input name=\"REPLACECHAR\" size=\"1\" maxlength=\"1\" value=\"".
$this->replaceChar.
"\">"   
        $this->replaceChar = 
(!empty($_POST['REPLACECHAR']) ? 
$_POST['REPLACECHAR'] : 
"_");  
    // #############################################  
      * returns the field value  
      * after replacing invalid chars  
      * @param  string  $aValue     the value  
      * @param  array   $err        error array  
      * @param  string  $arrName    name of the array to access fieldsarray  gloabl ${$arrName}  
    function getValue($aValue,&$err,$arrName=
"DBVAL",$debug=
FALSE) {  
        if ($debug) echo 
"<hr><p><b>DBMS_FIELD_STRINGIDENTIFIER::getValue($aValue,$err,$arrName,$debug)</b> (".
get_class($this).
" | ".
$this->myName.
")</p>";  
        return parent::getValue($aValue,$err,$debug);  
      * add slashes to the value from getValue to add it to a sql command  
      * @param  string  $aValue     the value  
      * @param  array   $err        error array  
      * @param  string  $arrName    name of the global array to access field gloabl ${$arrName}  
    function slashedValue($aValue,&$err,$arrName=
"DBVAL",$debug=
FALSE) {  
        if ($debug) echo 
"<hr><p><b>DBMS_FIELD_STRINGIDENTIFIER::slashedValue($aValue,$err,$arrName,$debug)</b> (".
get_class($this).
"/".
$this->myName.
")</p>";  
        return parent::slashedValue($this->getValue($aValue,$err,$arrName,$debug),$err,$arrName,$debug);  
} // end class DBMS_FIELD_SELECTLIST  
 
 
	
		Documentation generated on Thu, 08 Jan 2009 17:42:58 +0100 by phpDocumentor 1.4.0a2