本文整理汇总了PHP中JControllerLegacy::execute方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerLegacy::execute方法的具体用法?PHP JControllerLegacy::execute怎么用?PHP JControllerLegacy::execute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JControllerLegacy
的用法示例。
在下文中一共展示了JControllerLegacy::execute方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
/**
* Override execute to wrap exception handling to our own
* @param string $task The task to perform. If no matching task is found, the '__default' task is executed, if defined.
*
* @return mixed The value returned by the called method, false in error case.
*/
public function execute($task)
{
try {
parent::execute($task);
} catch (Exception $e) {
$this->catchException($e);
}
}
示例2: execute
public function execute($task)
{
parent::execute($task);
//if error just return
//if(JError::getError())
// return;
//fire event to update editor
$this->updateEditor($this->getTask(), $this->event_args);
}
示例3: execute
public function execute($task)
{
if ($task == "display") {
$input = JFactory::getApplication()->input;
$view = $input->get("view");
$file_id = $input->get("file_id");
if ($view == "itemstat" && empty($file_id)) {
$this->setRedirect('index.php?option=com_downfiles&view=stats');
return false;
}
}
parent::execute($task);
}
示例4: execute
function execute($task)
{
if ('cancel' == $task) {
return $this->cancel();
}
JBidAdminComissionToolbar::display($task);
$input = JFactory::getApplication()->input;
$commissionType = $input->get('commissionType');
if (!$commissionType) {
JError::raiseNotice(1, JText::_('COM_BIDS_NOTICE_SELECT_COMMISSION_TYPE'));
$viewMenu = $this->getView('notype');
$viewMenu->display();
return;
}
return parent::execute($task);
}
示例5: execute
function execute($task)
{
JBidAdminContactToolbar::display($task);
return parent::execute($task);
}
示例6: execute
function execute($task = null)
{
if ($task != null) {
parent::execute($task);
} else {
$app = JFactory::getApplication();
$task = $app->input->getCmd('task');
$controller = 'survey';
switch ($task) {
case 'latest':
case 'popular':
case 'search':
case 'feed':
$controller = 'survey';
break;
case 'take_survey':
case 'response_form':
case 'save_response':
case 'previous_page':
case 'view_result':
case 'end_message':
case 'ajx_save_response':
$controller = 'response';
break;
case 'form':
case 'edit':
case 'save':
case 'save_qn':
case 'delete_qn':
case 'move_qn':
case 'new_page':
case 'delete_page':
case 'rename_page':
case 'update_order':
case 'finalize':
case 'get_tags':
case 'upload_answer_image':
case 'save_rule':
case 'remove_rule':
case 'copy':
case 'rename_page':
case 'reorder_pages':
$controller = 'form';
break;
case 'invite':
case 'save_group':
case 'delete_group':
case 'get_contacts':
case 'save_contacts':
case 'delete_contacts':
case 'import_contacts':
case 'assign_contacts':
case 'invite_contact_group':
case 'search_users':
case 'invite_registered_users':
case 'invite_registered_groups':
case 'invite_js_groups':
case 'get_urls_list':
case 'create_unique_urls':
$controller = 'invite';
break;
case 'dashboard':
case 'responses':
case 'consolidated':
case 'csvdownload':
case 'pdfdownload':
case 'pdfconsolidated':
case 'location_report':
case 'device_report':
case 'os_report':
case 'view_response':
case 'remove_responses':
$controller = 'reports';
break;
case 'my_surveys':
case 'my_responses':
$controller = 'user';
break;
}
$document = JFactory::getDocument();
CJFunctions::add_css_to_document($document, JURI::root(true) . '/media/' . S_APP_NAME . '/css/cj.surveys.min.css', true);
CJFunctions::add_script_to_document($document, 'cj.surveys.min.js', true, JURI::root(true) . '/media/' . S_APP_NAME . '/js/');
// $headData = $document->getHeadData();
// $scripts = $headData['scripts'];
// unset($scripts['/templates/yolk/js/jquery-noconflict.js']);
// $headData['scripts'] = $scripts;
// $document->setHeadData($headData);
require_once JPATH_COMPONENT . DS . 'controllers' . DS . $controller . '.php';
$classname = 'CommunitySurveysController' . JString::ucfirst($controller);
$controller = new $classname();
$controller->execute($task);
$controller->redirect();
}
}
示例7: execute
function execute($task)
{
JBidAdminFeaturedToolbar::display($task);
return parent::execute($task);
}
示例8: execute
function execute($task)
{
JBidAdminListingToolbar::display($task);
return parent::execute($task);
}
示例9: execute
function execute($task)
{
JTheFactoryIntegrationLoveToolbar::display($task);
parent::execute($task);
}
示例10: execute
function execute($task)
{
JTheFactoryIntegrationCBToolbar::display($task);
return parent::execute($task);
}
示例11: execute
function execute($task = null)
{
parent::execute($task);
}