app = $app; // Set the context for the controller $this->context = 'com_patchtester.' . $this->getInput()->getCmd('view', $this->defaultView); } /** * Get the application object. * * @return CMSApplication * * @since __DEPLOY_VERSION__ */ public function getApplication() { return $this->app; } /** * Get the input object. * * @return Input * * @since __DEPLOY_VERSION__ */ public function getInput() { return $this->app->input; } /** * Sets the state for the model object * * @param \JModel $model Model object * * @return Registry * * @since 2.0 */ protected function initializeState(\JModel $model) { $state = new Registry; // Load the parameters. $params = ComponentHelper::getParams('com_patchtester'); $state->set('github_user', $params->get('org', 'joomla')); $state->set('github_repo', $params->get('repo', 'joomla-cms')); return $state; } }