Exemplo n.º 1
0
 public function __construct()
 {
     $tbl = 'admin';
     $pk_field = 'id_admin';
     $login_field = 'email';
     $pass_field = 'password';
     $active_field = 'is_active';
     $PDO = PDOBuilder::build(DB_TYPE, DB_HOST, DB_SCHEMA, DB_USER, DB_PASS);
     $ADL = new AuthDataLayer($PDO, $tbl, $login_field, $pass_field, $pk_field, $active_field);
     parent::__construct($ADL, new Crypt(), new Session($this->_session_name));
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $this->_dao = new DAO(PDOBuilder::build(DB_TYPE, DB_HOST, DB_SCHEMA, DB_USER, DB_PASS));
     $this->_entities = new Entities('config/entities.php');
 }