protected function getFeed($index) { if (isset($this->feeds[$index])) { $feedData = $this->feeds[$index]; if (!isset($feedData['CONTROLLER_CLASS'])) { $feedData['CONTROLLER_CLASS'] = 'LDAPPeopleController'; } $controller = PeopleController::factory($feedData['CONTROLLER_CLASS'], $feedData); //$controller->setAttributes($this->detailAttributes); return $controller; } else { throw new KurogoConfigurationException("Error getting people feed for index {$index}"); } }
protected function getFeed($index) { if (isset($this->feeds[$index])) { $feedData = $this->feeds[$index]; if (!isset($feedData['CONTROLLER_CLASS'])) { $feedData['CONTROLLER_CLASS'] = 'LDAPPeopleController'; } $controller = PeopleController::factory($feedData['CONTROLLER_CLASS'], $feedData); //$controller->setAttributes($this->detailAttributes); $controller->setDebugMode($this->getSiteVar('DATA_DEBUG')); return $controller; } else { throw new Exception("Error getting people feed for index $index"); } }
protected function getFeed($index) { if (isset($this->controllers[$index])) { return $this->controllers[$index]; } if (isset($this->feeds[$index])) { $feedData = $this->feeds[$index]; try { if (isset($feedData['CONTROLLER_CLASS'])) { $modelClass = $feedData['CONTROLLER_CLASS']; } else { $modelClass = isset($feedData['MODEL_CLASS']) ? $feedData['MODEL_CLASS'] : self::$defaultModel; } $controller = PeopleDataModel::factory($modelClass, $feedData); } catch (KurogoException $e) { $controller = PeopleController::factory($feedData['CONTROLLER_CLASS'], $feedData); $this->legacyController = true; } $controller->setAttributes($this->detailAttributes); $this->controllers[$index] = $controller; return $controller; } else { throw new KurogoConfigurationException("Error getting people feed for index {$index}"); } }