/** * getModelFiles * @return Model_Files * @author Cornelius Hansjakob <*****@*****.**> * @version 1.0 */ protected function getModelFiles() { if (null === $this->objModelFiles) { require_once GLOBAL_ROOT_PATH . $this->core->sysConfig->path->zoolu_modules . 'core/models/Files.php'; $this->objModelFiles = new Model_Files(); $this->objModelFiles->setLanguageId($this->intLanguageId); } return $this->objModelFiles; }
/** * getModelFiles * @author Cornelius Hansjakob <*****@*****.**> * @version 1.0 */ protected function getModelFiles() { if (null === $this->objModelFiles) { /** * autoload only handles "library" compoennts. * Since this is an application model, we need to require it * from its modules path location. */ require_once GLOBAL_ROOT_PATH . $this->core->sysConfig->path->zoolu_modules . 'core/models/Files.php'; $this->objModelFiles = new Model_Files(); $this->objModelFiles->setLanguageId($this->setup->getLanguageId()); } return $this->objModelFiles; }
/** * getModelFiles * @author Cornelius Hansjakob <*****@*****.**> * @version 1.0 */ protected function getModelFiles() { if (null === $this->objModelFiles) { /** * autoload only handles "library" compoennts. * Since this is an application model, we need to require it * from its modules path location. */ require_once GLOBAL_ROOT_PATH . $this->core->sysConfig->path->zoolu_modules . 'core/models/Files.php'; $this->objModelFiles = new Model_Files(); $this->objModelFiles->setLanguageId($this->getRequest()->getParam("languageId", $this->core->intZooluLanguageId)); $this->objModelFiles->setAlternativLanguageId(Zend_Auth::getInstance()->getIdentity()->languageId); } return $this->objModelFiles; }