/** * Proxy for getModel. */ function display($cachable = false, $urlparams = array()) { switch (JRequest::getVar('task')) { case 'delete': $this->delete(); break; case 'remove_confirmed': $this->remove_confirmed(); break; case 'copyItem': $this->copyItem(); break; case 'uploadItem': $this->uploadItem(); break; case 'themelist.delete': $this->delete(); break; case 'themelist.remove_confirmed': $this->remove_confirmed(); break; case 'themelist.copyItem': $this->copyItem(); break; case 'themelist.uploadItem': $this->uploadItem(); break; default: JRequest::setVar('view', 'themelist'); parent::display(); break; } }
public function display($cachable = false, $urlparams = false) { JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); // Set the model $model = $this->getModel('printfoods', '', array()); $cid = JRequest::getVar('cid', '', 'post', 'ARRAY'); $cid_url = http_build_query(array('cid' => $cid)); // Preset the redirect $this->setRedirect(JRoute::_('index.php?option=com_sibdiet&view=printfoods&tmpl=component&print=1&' . $cid_url, false)); return parent::display(); }
function display() { switch (JRequest::getVar('task')) { case 'cancel': $this->cancel(); break; default: JRequest::setVar('view', 'videoylist'); parent::display(); break; } }
public function display($cachable = false, $urlparams = false) { JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); // Set the model $model = $this->getModel('printdiets', '', array()); $jinput = JFactory::getApplication()->input; $layout = $jinput->get('layout', 'default', 'STRING'); $cid = $jinput->get('cid', '', 'ARRAY'); $cid_url = http_build_query(array('cid' => $cid)); // Preset the redirect $this->setRedirect(JRoute::_('index.php?option=com_sibdiet&view=printdiets&tmpl=component&print=1&layout=' . $layout . '&' . $cid_url, false)); return parent::display(); }
public function display($cachable = false, $urlparams = false) { $option = JRequest::getCmd('option'); $mainframe = JFactory::getApplication(); $currentseason = JComponentHelper::getParams($option)->get('current_season', 0); $use_new_menu = JComponentHelper::getParams($option)->get('cfg_use_new_menue', 0); //$mainframe->enqueueMessage(JText::_('display current_season-> '.'<pre>'.print_r($currentseason,true).'</pre>' ),''); // display the left menu only if hidemainmenu is not true $show_menu = !JRequest::getVar('hidemainmenu', false); // display left menu $viewName = JRequest::getCmd('view', ''); $layoutName = JRequest::getCmd('layout', 'default'); if ($use_new_menu) { if ($viewName == '' && $layoutName == 'default') { JRequest::setVar('view', 'cpanel'); JRequest::setVar('layout', 'default'); JRequest::setVar('hidemainmenu', false); $viewName = "cpanel"; } // Set the submenu joomleaguemenueHelper::addSubmenu('messages'); } else { if ($viewName == '' && $layoutName == 'default') { if ($currentseason) { JRequest::setVar('view', 'currentseasons'); $viewName = "currentseasons"; } else { JRequest::setVar('view', 'projects'); $viewName = "projects"; } } if ($viewName != 'about' && $show_menu) { $this->ShowMenu(); } } $document = JFactory::getDocument(); $viewType = $document->getType(); $view = $this->getView($viewName, $viewType); $view->setLayout($layoutName); $view->setModel($this->getModel($viewName), true); $view->display(); parent::display(); return $this; }
function display($cachable = false, $urlparams = false) { switch (JRequest::getVar('task')) { case 'themeimport.upload': $this->upload(); break; case 'upload': $this->upload(); break; case 'themeimport.cancel': $this->cancel(); break; case 'cancel': $this->cancel(); break; default: JRequest::setVar('view', 'themeimport'); parent::display(); break; } }
/** * Proxy for getModel. */ function display($cachable = false, $urlparams = array()) { $task = JRequest::getVar('task'); switch ($task) { case 'delete': $this->delete(); break; case 'linkslist.delete': $this->delete(); break; case 'remove_confirmed': $this->remove_confirmed(); break; case 'linkslist.remove_confirmed': $this->remove_confirmed(); break; case 'copyItem': $this->copyItem(); break; case 'linkslist.copyItem': $this->copyItem(); break; case 'refreshItem': $this->refreshItem(); break; case 'linkslist.refreshItem': $this->refreshItem(); break; case 'updateItem': $this->updateItem(); break; case 'linkslist.updateItem': $this->updateItem(); break; default: JRequest::setVar('view', 'linkslist'); parent::display(); break; } }
/** * Display * * @return void * * @since 1.7.0 */ public function display() { JFactory::getApplication()->input->set('view', 'directory'); parent::display(); }
public function search() { parent::display(true); }
/** * Display * * @param boolean $cachable If true, the view output will be cached * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * * @return JController This object to support chaining. */ public function display($cachable = false, $urlparams = false) { $jinput = JFactory::getApplication()->input; // Show the layout depending on the task switch ($this->getTask()) { case 'add': $jinput->set('hidemainmenu', 1); $jinput->set('layout', 'form'); $jinput->set('view', 'mailinglist'); break; case 'edit': $jinput->set('hidemainmenu', 1); $jinput->set('layout', 'form'); $jinput->set('view', 'mailinglist'); break; default: $jinput->set('hidemainmenu', 0); $jinput->set('view', 'mailinglists'); break; } parent::display(); }
/** * Display funtion. * * @param boolean $cachable If true, the view output will be cached * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * * @return JControllerLegacy A JControllerLegacy object to support chaining. * * @since 1.7.0 */ public function display($cachable = false, $urlparams = []) { JFactory::getApplication()->input->set('view', 'reports'); parent::display(); }
function display($cachable = false) { JRequest::setVar('view', JRequest::getCmd('view', 'fieldsxref')); parent::display($cachable); }
/** * Display * * @param boolean $cachable If true, the view output will be cached * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * * @return JController This object to support chaining. * */ public function display($cachable = false, $urlparams = array()) { $jinput = JFactory::getApplication()->input; switch ($this->getTask()) { case 'add': $jinput->set('hidemainmenu', 1); $jinput->set('layout', 'form'); $jinput->set('view', 'campaign'); break; case 'edit': $jinput->set('hidemainmenu', 1); $jinput->set('layout', 'form'); $jinput->set('view', 'campaign'); break; /* case 'activate': $jinput->set('hidemainmenu', 0); $jinput->set('layout', 'default'); $jinput->set('view', 'campaigns'); break; case 'autotest': $jinput->set('hidemainmenu', 0); $jinput->set('layout', 'default'); $jinput->set('view', 'campaigns'); break; case 'dueSend': //echo "Test Task"; $jinput->set('hidemainmenu', 0); $jinput->set('layout', 'default'); $jinput->set('view', 'campaigns'); break; */ /* case 'activate': $jinput->set('hidemainmenu', 0); $jinput->set('layout', 'default'); $jinput->set('view', 'campaigns'); break; case 'autotest': $jinput->set('hidemainmenu', 0); $jinput->set('layout', 'default'); $jinput->set('view', 'campaigns'); break; case 'dueSend': //echo "Test Task"; $jinput->set('hidemainmenu', 0); $jinput->set('layout', 'default'); $jinput->set('view', 'campaigns'); break; */ default: $jinput->set('hidemainmenu', 0); $jinput->set('view', 'campaigns'); break; } parent::display(); }
/** * Display * * @param boolean $cachable If true, the view output will be cached * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * * @return JController This object to support chaining. * * @since 1.1.0 */ public function display($cachable = false, $urlparams = array()) { $jinput = JFactory::getApplication()->input; // Show the layout depending on the task switch ($this->getTask()) { default: $jinput->set('hidemainmenu', 0); $jinput->set('view', 'templates'); break; } parent::display(); }
/** * Method to call the view for the export process * --> we will take the raw-view which calls the export-function in the model * * @access public */ public function export() { $jinput = JFactory::getApplication()->input; // Check for request forgeries if (!JSession::checkToken()) { jexit(JText::_('JINVALID_TOKEN')); } $document = JFactory::getDocument(); $app = JFactory::getApplication(); $post = $jinput->getArray(array('fileformat' => 'string', 'delimiter' => 'string', 'enclosure' => 'string', 'status1' => 'string', 'status0' => 'string', 'status9' => 'string', 'archive0' => 'string', 'archive1' => 'string', 'export_fields' => 'array', 'task' => 'string', 'controller' => 'string', 'option' => 'string')); $app->setUserState('com_bwpostman.subscribers.export.data', $post); $jinput->set('view', 'subscriber'); $document->setType('raw'); $link = JRoute::_('index.php?option=com_bwpostman&view=subscriber&layout=export&format=raw', false); $this->setRedirect($link); parent::display(); }
/** * Method to display a view. * * @param boolean $cachable If true, the view output will be cached * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * * @return JController This object to support chaining. */ function display($cachable = false, $urlparams = array()) { $this->input->set('view', 'typos'); parent::display($cachable, $urlparams); }