/** * PHP 4 constructor for the tasker * * @return joomfishTasker */ function __construct() { parent::__construct(); $this->registerDefaultTask('show'); $this->act = JRequest::getVar('act', ''); $this->task = JRequest::getVar('task', ''); $this->cid = JRequest::getVar('cid', array(0)); if (!is_array($this->cid)) { $this->cid = array(0); } $this->fileCode = JRequest::getVar('fileCode', ''); $this->_falangManager = FalangManager::getInstance(); $this->registerTask('show', 'showCElementConfig'); $this->registerTask('detail', 'showElementConfiguration'); $this->registerTask('remove', 'removeContentElement'); $this->registerTask('remove_install', 'removeContentElement'); $this->registerTask('installer', 'showContentElementsInstaller'); $this->registerTask('uploadfile', 'installContentElement'); // Populate data used by controller $app = JFactory::getApplication(); $this->_catid = $app->getUserStateFromRequest('selected_catid', 'catid', ''); $this->_select_language_id = $app->getUserStateFromRequest('selected_lang', 'select_language_id', '-1'); $this->_language_id = JRequest::getVar('language_id', $this->_select_language_id); $this->_select_language_id = $this->_select_language_id == -1 && $this->_language_id != -1 ? $this->_language_id : $this->_select_language_id; // Populate common data used by view // get the view $this->view = $this->getView("elements"); // Assign data for view $this->view->assignRef('catid', $this->_catid); $this->view->assignRef('select_language_id', $this->_select_language_id); $this->view->assignRef('task', $this->task); $this->view->assignRef('act', $this->act); }
/** * Display information * */ function display() { $task = $this->getTask(); $view = JRequest::getVar('view', ''); if (!$view) { JRequest::setVar('view', 'tickets'); } parent::display(); HelpdeskProHelper::addSubmenus(JRequest::getVar('view', 'plans')); HelpdeskProHelper::displayCopyRight(); }
function __construct() { parent::__construct(); $this->registerDefaultTask('showTranslate'); $this->act = JRequest::getVar('act', ''); $this->task = JRequest::getVar('task', ''); $this->cid = JRequest::getVar('cid', array(0)); if (!is_array($this->cid)) { $this->cid = array(0); } $this->fileCode = JRequest::getVar('fileCode', ''); $this->_falangManager = FalangManager::getInstance(); $this->registerTask('overview', 'showTranslate'); $this->registerTask('cancel', 'showTranslate'); $this->registerTask('edit', 'editTranslation'); $this->registerTask('apply', 'saveTranslation'); $this->registerTask('save', 'saveTranslation'); $this->registerTask('publish', 'publishTranslation'); // NB the method will check on task $this->registerTask('unpublish', 'publishTranslation'); $this->registerTask('remove', 'removeTranslation'); $this->registerTask('preview', 'previewTranslation'); $this->registerTask('orphans', 'showOrphanOverview'); $this->registerTask('orphandetail', 'showOrphanDetail'); $this->registerTask('removeorphan', 'removeOrphan'); $this->registerTask('editfree', 'editFreeTranslation'); // Populate data used by controller $app = JFactory::getApplication(); $this->_catid = $app->getUserStateFromRequest('selected_catid', 'catid', ''); $this->_select_language_id = $app->getUserStateFromRequest('selected_lang', 'select_language_id', '-1'); $this->_language_id = JRequest::getVar('language_id', $this->_select_language_id); $this->_select_language_id = $this->_select_language_id == -1 && $this->_language_id != -1 ? $this->_language_id : $this->_select_language_id; // Populate common data used by view // get the view $this->view = $this->getView("translate"); $model = $this->getModel('translate'); $this->view->setModel($model, true); // Assign data for view $this->view->assignRef('catid', $this->_catid); $this->view->assignRef('select_language_id', $this->_select_language_id); $this->view->assignRef('task', $this->task); $this->view->assignRef('act', $this->act); }
function __construct($config) { parent::__construct($config); $this->component = JRequest::getCmd('option'); if (isset($config['entity_name'])) { $this->entityName = $config['entity_name']; } else { $this->entityName = $this->getEntityName(); } if (isset($config['language_prefix'])) { $this->langPrefix = $config['language_prefix']; } else { $this->langPrefix = OSF_LANG_PREFIX; } if (isset($config['view_list_url'])) { $this->viewListUrl = $config['view_list_url']; } else { $this->viewListUrl = 'index.php?option=' . $this->component . '&view=' . OSInflector::pluralize($this->entityName); } $this->registerTask('apply', 'save'); }
/** * Constructor function * * @param array $config */ function __construct($config = array()) { parent::__construct($config); }
/** * Standard display control structure * */ function display($cachable = false, $urlparams = array()) { $this->view = $this->getView("help"); parent::display(); }
/** * Standard display control structure * */ function display() { $this->view = $this->getView("help"); parent::display(); }
/** * Standard display control structure * */ function display() { $this->view = $this->getView('cpanel'); parent::display(); }