当前位置: 首页>>代码示例>>PHP>>正文


PHP JControllerLegacy::execute方法代码示例

本文整理汇总了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);
     }
 }
开发者ID:nadsrosun,项目名称:ProductComparisonDemo,代码行数:14,代码来源:controller.php

示例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);
 }
开发者ID:scarsroga,项目名称:blog-soa,代码行数:9,代码来源:controller.php

示例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);
 }
开发者ID:matth-oz,项目名称:com_downfiles,代码行数:13,代码来源:controller.php

示例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);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:16,代码来源:admin.php

示例5: execute

 function execute($task)
 {
     JBidAdminContactToolbar::display($task);
     return parent::execute($task);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:5,代码来源:admin.php

示例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();
     }
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:94,代码来源:controller.php

示例7: execute

 function execute($task)
 {
     JBidAdminFeaturedToolbar::display($task);
     return parent::execute($task);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:5,代码来源:admin.php

示例8: execute

 function execute($task)
 {
     JBidAdminListingToolbar::display($task);
     return parent::execute($task);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:5,代码来源:admin.php

示例9: execute

 function execute($task)
 {
     JTheFactoryIntegrationLoveToolbar::display($task);
     parent::execute($task);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:5,代码来源:love.php

示例10: execute

 function execute($task)
 {
     JTheFactoryIntegrationCBToolbar::display($task);
     return parent::execute($task);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:5,代码来源:cb.php

示例11: execute

 function execute($task = null)
 {
     parent::execute($task);
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:4,代码来源:controller.php


注:本文中的JControllerLegacy::execute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。