/** * Initialize the active record manager. * @param TXmlDocument xml configuration. */ public function init($xml) { parent::init($xml); $manager = TActiveRecordManager::getInstance(); if ($this->getEnableCache()) { $manager->setCache($this->getApplication()->getCache()); } $manager->setDbConnection($this->getDbConnection()); $manager->setInvalidFinderResult($this->getInvalidFinderResult()); }
/** * Initialize the active record manager. * @param TXmlDocument xml configuration. */ public function init($xml) { parent::init($xml); $manager = $this->getManager(); if ($this->getEnableCache()) { $manager->setCache($this->getApplication()->getCache()); } $manager->setDbConnection($this->getDbConnection()); $manager->setInvalidFinderResult($this->getInvalidFinderResult()); $manager->setGatewayClass($this->getGatewayClass()); }
/** * Initalize the database connection properties from attributes in <database> tag. * @param TXmlDocument xml configuration. */ public function init($xml) { parent::init($xml); $this->initChildConnectionData($xml); $this->bInitialized = true; }