示例#1
0
 /**
  * constructor - sets basic log properties
  */
 function __construct()
 {
     parent::__construct();
     // generic log properties
     $this->propertyAdd('LogApp');
     $this->propertyAdd('LogDate');
     $this->propertyAdd('LogId');
     $this->propertyAdd('LogLevel');
     $this->propertyAdd('LogText');
     // id property
     $this->setIdProperty('LogId');
     // date properties
     $this->setPropertyIsDate('LogDate', true);
     // non-quoted properties
     $this->setPropertyIsQuoted('LogId', false);
     $this->setPropertyIsQuoted('LogLevel', false);
     // set max lengths
     $this->setPropertyMaxLength('LogApp', 50);
     $this->setPropertyMaxLength('LogDate', 19);
     $this->setPropertyMaxLength('LogId', 10);
     $this->setPropertyMaxLength('LogLevel', 2);
     $this->setPropertyMaxLength('LogText', 255);
     // set properties when adding entries
     $p = array('LogDate', 'LogApp', 'LogLevel', 'LogText');
     $this->setPropertiesAdd($p);
 }
示例#2
0
文件: dbo.php 项目: bizonix/phpMyCA
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
 }