Exemplo n.º 1
0
 public function connect($database, $model)
 {
     $this->database = $database;
     $this->tableName = $model;
     $this->_connection = Connection::getConnection($database);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * We will set Database Connection object
  *
  * @param $connection
  */
 public function setDatabaseConnection($connection)
 {
     $this->pdo[$connection] = Connection::getConnection($connection);
 }
Exemplo n.º 3
0
 /**
  * Set the database connection
  *
  * @param $database
  */
 public function setConn($database)
 {
     $this->_connection = Connection::getConnection($database);
 }