コード例 #1
0
ファイル: model.php プロジェクト: nguyennamtien/appleseed
 /**
  * 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
ファイル: router.php プロジェクト: nguyennamtien/appleseed
 /**
  * Constructor
  *
  * @access  public
  */
 public function __construct()
 {
     parent::__construct();
 }
コード例 #3
0
 /**
  * Constructor
  *
  * @access  public
  */
 public function __construct()
 {
     $this->_Models = new stdClass();
     parent::__construct();
 }
コード例 #4
0
ファイル: component.php プロジェクト: nguyennamtien/appleseed
 /**
  * Constructor
  *
  * @access  public
  */
 public function __construct()
 {
     $this->Controllers = new stdClass();
     parent::__construct();
 }