Database::__construct PHP Method

__construct() private method

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

Usage Example

Exemplo n.º 1
0
 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