/** * getModelGlobals * @param array $arrArgs * @return Model_Globals * @author Cornelius Hansjakob <*****@*****.**> * @version 1.0 */ protected function getModelGlobals($arrArgs) { if (null === $this->objModelGlobals) { /** * 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 . 'global/models/Globals.php'; $this->objModelGlobals = new Model_Globals(); $this->objModelGlobals->setLanguageId($arrArgs['LanguageId']); } return $this->objModelGlobals; }