/** * getModelLocations * @return Model_Locations * @author Cornelius Hansjakob <*****@*****.**> * @version 1.0 */ protected function getModelLocations() { if (null === $this->objModelLocations) { /** * 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/Locations.php'; $this->objModelLocations = new Model_Locations(); $this->objModelLocations->setLanguageId($this->core->intZooluLanguageId); } return $this->objModelLocations; }