/** * Display "New" / "Edit" */ function edit() { JRequest::setVar('view', 'groups'); JRequest::setVar('layout', 'edit'); parent::display(); }
/** * Display "New" / "Edit" */ function edit() { JRequest::setVar('view', 'customfields'); JRequest::setVar('layout', 'edit'); parent::display(); }
/** * Display "New" / "Edit" */ function edit() { JRequest::setVar('view', 'kbcategories'); JRequest::setVar('layout', 'edit'); parent::display(); }
<?php /** * @version 2.0.0 * @package RSTickets! Pro 2.0.0 * @copyright (C) 2010 www.rsjoomla.com * @license GPL, http://www.gnu.org/licenses/gpl-2.0.html */ defined('_JEXEC') or die('Restricted access'); // Require the base controller require_once JPATH_COMPONENT . DS . 'controller.php'; require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_rsticketspro' . DS . 'helpers' . DS . 'rsticketspro.php'; require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_rsticketspro' . DS . 'helpers' . DS . 'html.php'; require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_rsticketspro' . DS . 'helpers' . DS . 'securimage' . DS . 'securimage.php'; require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_rsticketspro' . DS . 'helpers' . DS . 'recaptcha' . DS . 'recaptchalib.php'; RSTicketsProHelper::readConfig(); // See if this is a request for a specific controller $controller = JRequest::getCmd('controller'); if (!empty($controller) && file_exists(JPATH_COMPONENT . DS . 'controllers' . DS . $controller . '.php')) { require_once JPATH_COMPONENT . DS . 'controllers' . DS . $controller . '.php'; $controller = 'RSTicketsProController' . $controller; $RSTicketsProController = new $controller(); } else { $RSTicketsProController = new RSTicketsProController(); } $RSTicketsProController->execute(JRequest::getCmd('task')); // Redirect if set $RSTicketsProController->redirect();
function search() { $mainframe =& JFactory::getApplication(); // Get the model $model = $this->getModel('searches'); $search = $model->getSearch(); $params = unserialize(base64_decode($search->params)); foreach ($params as $param => $value) { JRequest::setVar($param, $value); } if ($mainframe->isAdmin()) { JRequest::setVar('view', 'tickets'); } else { JRequest::setVar('view', 'rsticketspro'); } JRequest::setVar('layout', 'default'); $mainframe =& JFactory::getApplication(); $option = 'com_rsticketspro'; $mainframe->setUserState($option . '.ticketsfilter.predefined_search', $search->id); parent::display(); }
function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $this->registerTask('apply', 'save'); }