コード例 #1
0
ファイル: mysql.php プロジェクト: pdelbar/onethree
 /**
  * Return the proper Database-Object according to the scheme
  *
  * @param One_Scheme $scheme
  * @return object
  */
 protected function db(One_Scheme $scheme)
 {
     if (is_null($this->dbh)) {
         $this->dbFromConnection($scheme->getConnection());
     }
     return $this->dbh;
 }
コード例 #2
0
ファイル: joomla2.php プロジェクト: pdelbar/onethree
 /**
  * Return the proper Database-Object according to the scheme
  *
  * @param One_Scheme $scheme
  * @return JDatabase
  * @access protected
  */
 protected function db(One_Scheme $scheme)
 {
     return $this->dbFromConnection($scheme->getConnection());
 }
コード例 #3
0
ファイル: rest.php プロジェクト: pdelbar/onethree
 protected function init(One_Scheme $scheme)
 {
     $connection = $scheme->getConnection();
     $this->routeMap = $connection->getRouteMap($scheme);
 }