Exemple #1
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)
 {
     if (is_null($this->dbh)) {
         $this->dbh = $connection->open();
     }
     return $this->dbh;
 }
Exemple #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();
 }