Exemple #1
0
 /**
  * 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;
 }
Exemple #2
0
 /**
  * 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());
 }
Exemple #3
0
 protected function init(One_Scheme $scheme)
 {
     $connection = $scheme->getConnection();
     $this->routeMap = $connection->getRouteMap($scheme);
 }