Database::__construct PHP Method

__construct() private method

private __construct ( )
    private function __construct()
    {
        $this->checkEnvironment();
    }

Usage Example

コード例 #1
0
ファイル: lib.magike_model.php プロジェクト: baijd/magike
 function __construct($table = NULL, $key = NULL)
 {
     parent::__construct();
     $this->table = str_replace('table.', __DBPREFIX__, $table ? $table : 'table.' . str_replace('_model', '', mgClassNameToFileName(get_class($this))));
     $this->clearArgs();
     $this->key = $key ? $this->table . "." . $key : $this->findPrimaryKey();
 }
All Usage Examples Of Database::__construct