Source for file OCSP_FORM_DBCONTROLL.phpclass
Documentation is available at OCSP_FORM_DBCONTROLL.phpclass
  * Class file OCSP_FORM_DBCONTROLL.phpclass  
  * @project    Open CSP-Management  
  * @author     Peter Krebs (pk) <pitlinz@users.sourceforge.net>  
  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License  
    if (!defined('__OCSP_NO_DBFIELD__')) define('__OCSP_NO_DBFIELD__','__NO-DBFIELD__');  
  * class OCSP_FORM_DBCONTROLL  
  * root class of database handling for form fields  
  * @project    Open CSP-Management  
  * @author     Peter Krebs (pk) <pitlinz@users.sourceforge.net>  
  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License  
      * this constructure returns an object of the subclass able to  
      * deal with the database type of $aDBObj  
        $str_cmd=
"\$obj_ret=new ".
$str_subClassName.
"();";  
    function generateColDesc($colName,$colType,$table=
__OCSP_NO_DBFIELD__,$size=
'0',$debug=
FALSE)  
                'AUTO_INCREMENT'    => 
FALSE,  
        return new DBMS_FIELD($colDesc['TABLE'],$colDesc['COLNAME'],$colDesc);  
      * creates the field column in the database  
      * @param DBMS_FIELD $field (name or object)  
      * @global array $OCSP_OBJ   
        $arr_desc=
$field->getdbDesc();  
        $str_table=
$field->getTable();  
            ocsp_logError(__FILE__
,__LINE__
,"$str_table does not exist",E_WARNING);  
        if (isset
($arr_desc['NULL']) && 
!$arr_desc['NULL'])  
            if (!isset
($arr_desc['DEFAULT']) || 
empty($arr_desc['DEFAULT']))  
                $arr_desc['DEFAULT']=
$field->getDefaultValue();  
                if (empty($arr_desc['DEFAULT']))  
        if (!isset
($arr_desc['COLNAME']) || 
empty($arr_desc['COLNAME']))  
            $arr_desc['COLNAME']=
$field->getName();  
            if (empty($arr_desc['COLNAME']))  
            $field->setdbDesc($arr_desc);  
 
 
	
		Documentation generated on Thu, 08 Jan 2009 17:46:02 +0100 by phpDocumentor 1.4.0a2