/** * The default layout, shows a list of profiles * */ function onBrowse($tpl = null) { // Get reference to profiles model $model = $this->getModel(); // Get profile ID $profileid = AEPlatform::getInstance()->get_active_profile(); $this->profileid = $profileid; // Get profile name $model->setId($profileid); $profile_data = $model->getProfile(); $this->profilename = $profile_data->description; return parent::onBrowse($tpl); }
/** * Executes before rendering the page for the Browse task. * * @param string $tpl Subtemplate to use * * @return boolean Return true to allow rendering of the page * * @since 3.2 */ protected function onBrowse($tpl = null) { /** @var PostinstallModelMessages $model */ $model = $this->getModel(); $this->eid = (int) $model->getState('eid', '700', 'int'); if (empty($this->eid)) { $this->eid = 700; } $this->token = JFactory::getSession()->getFormToken(); $this->extension_options = $model->getComponentOptions(); JToolBarHelper::title(JText::sprintf('COM_POSTINSTALL_MESSAGES_TITLE', $model->getExtensionName($this->eid))); return parent::onBrowse($tpl); }
/** * Executes before rendering the page for the Browse task. * * @param string $tpl Subtemplate to use * * @return boolean Return true to allow rendering of the page * * @since 3.2 */ protected function onBrowse($tpl = null) { $this->eid = $this->input->getInt('eid', '700'); $this->token = JFactory::getSession()->getFormToken(); return parent::onBrowse($tpl); }