Exemplo n.º 1
0
 protected function initModel(array $passData)
 {
     $this->db_connection = Sql::connectToDatabase(\Config::$DB_HOST, \Config::$DB_USER, \Config::$DB_PASS, \Config::$DB_DATABASE);
     $this->trimArrayData($passData);
     $this->user = new User();
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $this->db_connection = Sql::connectToDatabase(\Config::$DB_HOST, \Config::$DB_USER, \Config::$DB_PASS, \Config::$DB_DATABASE);
     $this->getTableColumns();
     $this->initSqlTemplates();
 }