예제 #1
0
파일: mysql.php 프로젝트: pdelbar/onethree
 /**
  * Return the proper Database-Object according to the connection
  *
  * @param One_Store_Connection_Interface $connection
  * @return object
  */
 protected function dbFromConnection(One_Store_Connection_Interface $connection)
 {
     if (is_null($this->dbh)) {
         $this->dbh = $connection->open();
     }
     return $this->dbh;
 }
예제 #2
0
 /**
  * Return the proper Database-Object according to the connection
  *
  * @param One_Store_Connection_Interface $connection
  * @return object
  */
 protected function dbFromConnection(One_Store_Connection_Interface $connection)
 {
     return $connection->open();
 }