Exemple #1
0
 /**
  * @param string $prefix
  * @return Auth
  */
 public function __construct(\Fp\Core\Init $O)
 {
     $this->O = $O;
     $this->data = array();
     $this->table = $O->glob('prefix') . $this->table;
     $this->session_key = md5($this->salt_session_key);
     $this->session = $O->session();
     $dbLink = Db::get_link();
     $tableLogin = $O->glob('prefix') . $this->table;
     $shemaLogin = array('table' => $tableLogin, 'options' => array('auto_increment' => 1), 'column' => array('uid' => array('type' => 'bigint', 'primary' => 1, 'sortable' => 1, 'searchable' => 1), 'time' => array('type' => 'datetime', 'sortable' => 1, 'searchable' => 1), 'status' => array('type' => 'int', 'sortable' => 1, 'searchable' => 1)));
     $this->tableLogin = Table::setTable($dbLink, $shemaLogin);
     $this->dbLogin = new Query($this->tableLogin, 'Login');
 }