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


PHP JControllerAdmin::display方法代码示例

本文整理汇总了PHP中JControllerAdmin::display方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerAdmin::display方法的具体用法?PHP JControllerAdmin::display怎么用?PHP JControllerAdmin::display使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JControllerAdmin的用法示例。


在下文中一共展示了JControllerAdmin::display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 /**
  * 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;
     }
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:36,代码来源:themelist.php

示例2: display

 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();
 }
开发者ID:smhnaji,项目名称:sdnet,代码行数:11,代码来源:printfoods.php

示例3: display

 function display()
 {
     switch (JRequest::getVar('task')) {
         case 'cancel':
             $this->cancel();
             break;
         default:
             JRequest::setVar('view', 'videoylist');
             parent::display();
             break;
     }
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:12,代码来源:videolist.php

示例4: display

 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();
 }
开发者ID:smhnaji,项目名称:sdnet,代码行数:13,代码来源:printdiets.php

示例5: 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;
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:44,代码来源:controller.php

示例6: display

 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;
     }
 }
开发者ID:VierlingMt,项目名称:joomla-3.x,代码行数:21,代码来源:themeimport.php

示例7: display

 /**
  * 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;
     }
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:43,代码来源:linkslist.php

示例8: display

 /**
  * Display
  *
  * @return void
  *
  * @since    1.7.0
  */
 public function display()
 {
     JFactory::getApplication()->input->set('view', 'directory');
     parent::display();
 }
开发者ID:Joomla-Bible-Study,项目名称:joomla_churchdirectory,代码行数:12,代码来源:directory.php

示例9: search

 public function search()
 {
     parent::display(true);
 }
开发者ID:hamby,项目名称:SEBLOD,代码行数:4,代码来源:list.php

示例10: 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.
  */
 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();
 }
开发者ID:RomanaBW,项目名称:BwPostman,代码行数:30,代码来源:mailinglists.php

示例11: 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();
 }
开发者ID:Joomla-Bible-Study,项目名称:joomla_churchdirectory,代码行数:15,代码来源:reports.php

示例12: display

 function display($cachable = false)
 {
     JRequest::setVar('view', JRequest::getCmd('view', 'fieldsxref'));
     parent::display($cachable);
 }
开发者ID:politik86,项目名称:test2,代码行数:5,代码来源:fieldsxref.php

示例13: 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.
  *
  */
 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();
 }
开发者ID:RomanaBW,项目名称:BwPostman,代码行数:70,代码来源:campaigns.php

示例14: 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();
 }
开发者ID:RomanaBW,项目名称:BwPostman,代码行数:22,代码来源:templates.php

示例15: export

 /**
  * 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();
 }
开发者ID:RomanaBW,项目名称:BwPostman,代码行数:23,代码来源:subscribers.php


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