예제 #1
0
파일: Table.php 프로젝트: rajaplr/framework
 public function connect($database, $model)
 {
     $this->database = $database;
     $this->tableName = $model;
     $this->_connection = Connection::getConnection($database);
     return $this;
 }
예제 #2
0
파일: Query.php 프로젝트: rajaplr/framework
 /**
  * We will set Database Connection object
  *
  * @param $connection
  */
 public function setDatabaseConnection($connection)
 {
     $this->pdo[$connection] = Connection::getConnection($connection);
 }
예제 #3
0
 /**
  * Set the database connection
  *
  * @param $database
  */
 public function setConn($database)
 {
     $this->_connection = Connection::getConnection($database);
 }