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