當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。