public function getFeed($index) { $feeds = $this->loadFeedData(); if (isset($feeds[$index])) { $feedData = $feeds[$index]; if (isset($feedData['CONTROLLER_CLASS'])) { $modelClass = $feedData['CONTROLLER_CLASS']; } else { $modelClass = isset($feedData['MODEL_CLASS']) ? $feedData['MODEL_CLASS'] : self::$defaultModel; } $controller = CalendarDataModel::factory($modelClass, $feedData); return $controller; } else { throw new KurogoConfigurationException($this->getLocalizedString("ERROR_NO_CALENDAR_FEED", $index)); } }
protected function init($args) { // Pass default onto parser/retriever if (!isset($args['EVENT_CLASS'])) { $args['EVENT_CLASS'] = $this->DEFAULT_EVENT_CLASS; } parent::init($args); if (isset($args['CATEGORY_FILTER_FIELD'])) { $this->categoryFilter = $args['CATEGORY_FILTER_FIELD']; } if (isset($args['CATEGORY_FILTER_VIEW'])) { $this->categoryFilterView = $args['CATEGORY_FILTER_VIEW']; } }
protected function init($args) { parent::init($args); }