示例#1
0
 /**
  * Constructor
  *
  * @access  public
  */
 public function __construct($pTable = null)
 {
     $Config = $this->GetSys("Config");
     $Database = $this->GetSys("Database");
     $this->_Prefix = $Config->GetConfiguration("pre");
     // Check if the tablename was specified.
     if ($pTable) {
         $tablename = $pTable;
     } elseif ($this->_Tablename) {
         $tablename = $this->_Tablename;
     } else {
         $tablename = preg_replace('/^c/', "", get_class($this));
         $tablename = preg_replace('/Model$/', "", $tablename);
     }
     $this->_Tablename = $tablename;
     // Pull the table structure into the class.
     if ($this->Structure()) {
         $this->_Exists = true;
     }
     $this->_Protected = array();
     parent::__construct();
     return true;
 }
示例#2
0
 /**
  * Constructor
  *
  * @access  public
  */
 public function __construct()
 {
     parent::__construct();
 }
示例#3
0
 /**
  * Constructor
  *
  * @access  public
  */
 public function __construct()
 {
     $this->_Models = new stdClass();
     parent::__construct();
 }
示例#4
0
 /**
  * Constructor
  *
  * @access  public
  */
 public function __construct()
 {
     $this->Controllers = new stdClass();
     parent::__construct();
 }