protected function loadFeedData() { $data = array(); $feedConfigFile = NULL; if ($this->feedGroup !== NULL) { $configName = "feeds-{$this->feedGroup}"; foreach ($this->getModuleSections($configName) as $id => $feedData) { $feedId = mapIdForFeedData($feedData); $data[$feedId] = $feedData; } } else { $category = $this->getCategory(); // if no feed group and category are specified, load whole list foreach ($this->feedGroups as $groupID => $groupData) { $configName = "feeds-{$groupID}"; $groupData = array(); foreach ($this->getModuleSections($configName) as $id => $feedData) { $feedId = mapIdForFeedData($feedData); $groupData[$feedId] = $feedData; if ($category == $feedId) { $this->feedGroup = $groupID; } } if ($this->feedGroup !== null) { $data = $groupData; break; } else { $data = array_merge($data, $groupData); } } } return $data; }
public function init($args) { parent::init($args); $this->feedId = mapIdForFeedData($args); if (isset($args['ALIASES'])) { $this->aliases = $args['ALIASES']; } }
public function init($args) { parent::init($args); if (isset($args['TITLE_FIELD'])) { $this->titleField = $args['TITLE_FIELD']; } if (isset($args['SUBTITLE_FIELD'])) { $this->subtitleField = $args['SUBTITLE_FIELD']; } $this->feedId = mapIdForFeedData($args); }
public function init($args) { parent::init($args); $this->baseURL = $args['BASE_URL']; if (isset($args['ARCGIS_LAYER_ID'])) { $this->defaultLayerId = $args['ARCGIS_LAYER_ID']; } if (isset($args['ID_FIELD'])) { $this->idField = $args['ID_FIELD']; } $this->category = array(mapIdForFeedData($args)); }
protected function init($args) { parent::init($args); if (isset($args['SEARCHABLE'])) { $this->searchable = $args['SEARCHABLE'] == 1; } if (isset($args['DEFAULT_ZOOM_LEVEL'])) { $this->defaultZoomLevel = $args['DEFAULT_ZOOM_LEVEL']; } if (isset($args['group'])) { $this->feedGroup = $args['group']; } $this->feedId = mapIdForFeedData($args); }
public function init($args) { parent::init($args); $this->feedId = mapIdForFeedData($args); if (isset($args['PLACEMARK_CLASS'])) { $this->placemarkClass = $args['PLACEMARK_CLASS']; } else { $this->placemarkClass = $this->DEFAULT_PLACEMARK_CLASS; } if (isset($args['TITLE_FIELD'])) { $this->configTitleField = $args['TITLE_FIELD']; } if (isset($args['SUBTITLE_FIELD'])) { $this->configSubtitleField = $args['SUBTITLE_FIELD']; } }
protected function loadFeedData($requestedFeedId = null) { $data = array(); $feedConfigFile = NULL; if ($this->feedGroup !== NULL) { $configName = "feeds-{$this->feedGroup}"; foreach ($this->getModuleSections($configName) as $id => $feedData) { // get aliases if any $feedData['group'] = $this->feedGroup; $aliases = $this->getOptionalModuleSection($id, "aliases-{$this->feedGroup}"); if ($aliases) { $feedData['ALIASES'] = $aliases; } $feedId = mapIdForFeedData($feedData); $data[$feedId] = $feedData; } } else { if ($requestedFeedId === null) { $requestedFeedId = $this->getArg('feed', null); } // if no feed group and category are specified, load whole list foreach ($this->feedGroups as $groupID => $groupSettings) { $configName = "feeds-{$groupID}"; $groupData = array(); foreach ($this->getModuleSections($configName) as $id => $feedData) { $feedData['group'] = $groupID; $aliases = $this->getOptionalModuleSection($id, "aliases-{$this->feedGroup}"); if ($aliases) { $feedData['ALIASES'] = $aliases; } $feedId = mapIdForFeedData($feedData); $groupData[$feedId] = $feedData; if ($requestedFeedId == $feedId) { $this->feedGroup = $groupID; } } if ($this->feedGroup !== null) { $data = $groupData; break; } else { $data = array_merge($data, $groupData); } } } return $data; }
public function init($args) { parent::init($args); $this->categoryId = mapIdForFeedData($args); }
protected function loadFeedData() { $this->getFeedGroups(); $this->feeds = array(); $feedConfigFile = NULL; if ($this->feedGroup === NULL) { if ($feedGroup = $this->getArg(array('feedgroup', 'group'), NULL)) { $this->feedGroup = $feedGroup; } elseif ($this->numGroups === 1) { $this->feedGroup = key($this->feedGroups); } } if ($this->numGroups === 0) { foreach ($this->getModuleSections('feeds') as $id => $feedData) { $feedId = mapIdForFeedData($feedData); $this->feeds[$feedId] = $feedData; } } elseif ($this->feedGroup !== NULL) { $configName = "feeds-{$this->feedGroup}"; foreach ($this->getModuleSections($configName) as $id => $feedData) { $feedId = mapIdForFeedData($feedData); $this->feeds[$feedId] = $feedData; } } else { foreach ($this->getFeedGroups() as $groupID => $groupData) { $configName = "feeds-{$groupID}"; foreach ($this->getModuleSections($configName) as $id => $feedData) { $feedId = mapIdForFeedData($feedData); $this->feeds[$feedId] = $feedData; } } } return $this->feeds; }
protected function init($args) { parent::init($args); $this->searchable = isset($args['SEARCHABLE']) ? $args['SEARCHABLE'] == 1 : false; if (isset($args['DEFAULT_ZOOM_LEVEL'])) { $this->defaultZoomLevel = $args['DEFAULT_ZOOM_LEVEL']; } $this->categoryId = mapIdForFeedData($args); }