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


PHP JoomleagueController::display方法代码示例

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


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

示例1: display

 public function display($cachable = false, $urlparams = false)
 {
     $option = JRequest::getCmd('option');
     $mainframe = JFactory::getApplication();
     $document = JFactory::getDocument();
     $model = $this->getModel('projectposition');
     $viewType = $document->getType();
     $view = $this->getView('projectposition', $viewType);
     $view->setModel($model, true);
     // true is for the default model;
     $projectws = $this->getModel('project');
     $projectws->setId($mainframe->getUserState($option . 'project', 0));
     $view->setModel($projectws);
     $task = $this->getTask();
     switch ($task) {
         case 'add':
             JRequest::setVar('layout', 'form');
             JRequest::setVar('view', 'projectposition');
             JRequest::setVar('edit', false);
             $model = $this->getModel('projectposition');
             $model->checkout();
             break;
         case 'edit':
             JRequest::setVar('layout', 'form');
             JRequest::setVar('view', 'projectposition');
             JRequest::setVar('edit', true);
             // Checkout the project
             $model = $this->getModel('projectposition');
             $model->checkout();
             break;
     }
     parent::display();
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:33,代码来源:projectposition.php

示例2: display

 function display()
 {
     $option = JRequest::getCmd('option');
     $mainframe = JFactory::getApplication();
     $document = JFactory::getDocument();
     switch ($this->getTask()) {
         case 'add':
             $model = $this->getModel('division');
             $viewType = $document->getType();
             $view = $this->getView('division', $viewType);
             $view->setModel($model, true);
             // true is for the default model;
             $projectws = $this->getModel('project');
             $projectws->set('name', 'projectws');
             $projectws->setId($mainframe->getUserState($option . 'project', 0));
             $view->setModel($projectws);
             JRequest::setVar('hidemainmenu', 0);
             JRequest::setVar('layout', 'form');
             JRequest::setVar('view', 'division');
             JRequest::setVar('edit', false);
             // Checkout the project
             $model->checkout();
             break;
         case 'edit':
             $model = $this->getModel('division');
             $viewType = $document->getType();
             $view = $this->getView('division', $viewType);
             $view->setModel($model, true);
             // true is for the default model;
             $projectws = $this->getModel('project');
             $projectws->set('name', 'projectws');
             $projectws->setId($mainframe->getUserState($option . 'project', 0));
             $view->setModel($projectws);
             JRequest::setVar('hidemainmenu', 0);
             JRequest::setVar('layout', 'form');
             JRequest::setVar('view', 'division');
             JRequest::setVar('edit', true);
             // Checkout the project
             $model->checkout();
             break;
         default:
             $model = $this->getModel('divisions');
             $viewType = $document->getType();
             $view = $this->getView('divisions', $viewType);
             $view->setModel($model, true);
             // true is for the default model;
             $projectws = $this->getModel('project');
             $projectws->set('name', 'projectws');
             $projectws->setId($mainframe->getUserState($option . 'project', 0));
             $view->setModel($projectws);
             break;
     }
     parent::display();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:54,代码来源:division.php

示例3: display

 public function display($cachable = false, $urlparams = false)
 {
     $document = JFactory::getDocument();
     $model = $this->getModel('updates');
     $viewType = $document->getType();
     $view = $this->getView('updates', $viewType);
     $view->setModel($model, true);
     // true is for the default model;
     $view->setLayout('updates');
     parent::display();
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:11,代码来源:update.php

示例4: select

 function select()
 {
     $mainframe =& JFactory::getApplication();
     $selectType = JRequest::getVar('type', 0, 'get', 'int');
     $recordID = JRequest::getVar('id', 0, 'get', 'int');
     $mainframe->setUserState('com_joomleague' . 'selectType', $selectType);
     $mainframe->setUserState('com_joomleague' . 'recordID', $recordID);
     JRequest::setVar('hidemainmenu', 1);
     JRequest::setVar('layout', 'selectpage');
     JRequest::setVar('view', 'jlextindividualsportringen');
     parent::display();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:12,代码来源:jlextindividualsportringen.php

示例5: select

 public function select()
 {
     $app = JFactory::getApplication();
     $selectType = JRequest::getVar('type', 0, 'get', 'int');
     $recordID = JRequest::getVar('id', 0, 'get', 'int');
     $app->setUserState('com_joomleague' . 'selectType', $selectType);
     $app->setUserState('com_joomleague' . 'recordID', $recordID);
     JRequest::setVar('hidemainmenu', 1);
     JRequest::setVar('layout', 'selectpage');
     JRequest::setVar('view', 'jlxmlimports');
     parent::display();
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:12,代码来源:jlxmlimport.php

示例6: display

 function display()
 {
     //$mainframe		=& JFactory::getApplication();
     //$option			= 'com_joomleague';
     $option = JRequest::getCmd('option');
     $mainframe = JFactory::getApplication();
     $document = JFactory::getDocument();
     $mainframe->enqueueMessage(JText::_('PredictionTemplate Task -> ' . $this->getTask()), '');
     $model = $this->getModel('predictiontemplates');
     $viewType = $document->getType();
     $view = $this->getView('predictiontemplates', $viewType);
     $view->setModel($model, true);
     // true is for the default model;
     $prediction_id1 = JRequest::getVar('prediction_id', '-1', '', 'int');
     //echo 'CPT-A' . $prediction_id1 . 'CPT-A<br />';
     $prediction_id2 = (int) $mainframe->getUserState('com_joomleague' . 'prediction_id');
     //echo 'CPT-B' . $prediction_id2 . 'CPT-B<br />';
     if ($prediction_id1 > -1) {
         $mainframe->setUserState('com_joomleague' . 'prediction_id', (int) $prediction_id1);
     } else {
         $mainframe->setUserState('com_joomleague' . 'prediction_id', (int) $prediction_id2);
     }
     $prediction_id = (int) $mainframe->getUserState('com_joomleague' . 'prediction_id');
     //echo 'CPT-C' . $prediction_id . 'CPT-C<br />';
     switch ($this->getTask()) {
         case 'add':
             JRequest::setVar('hidemainmenu', 0);
             JRequest::setVar('layout', 'form');
             JRequest::setVar('view', 'predictiontemplate');
             JRequest::setVar('edit', false);
             // Checkout the project
             $model = $this->getModel('predictiontemplate');
             //$model->checkout();
             break;
         case 'edit':
             $model = $this->getModel('predictiontemplate');
             $viewType = $document->getType();
             $view = $this->getView('predictiontemplate', $viewType);
             $view->setModel($model, true);
             // true is for the default model;
             //JRequest::setVar( 'hidemainmenu',	0 );
             JRequest::setVar('layout', 'form');
             JRequest::setVar('view', 'predictiontemplate');
             JRequest::setVar('edit', true);
             //$model = $this->getModel( 'predictiontemplate' );
             break;
     }
     parent::display();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:49,代码来源:predictiontemplate.php

示例7: display

 function display()
 {
     $option = JRequest::getCmd('option');
     $mainframe = JFactory::getApplication();
     $document = JFactory::getDocument();
     $model = $this->getModel('treetonodes');
     $viewType = $document->getType();
     $view = $this->getView('treetonodes', $viewType);
     $view->setModel($model, true);
     // true is for the default model;
     $projectws = $this->getModel('project');
     $projectws->set('name', 'projectws');
     $projectws->setId($mainframe->getUserState($option . 'project', 0));
     $view->setModel($projectws);
     if ($tid = JRequest::getVar('tid', null, '', 'array')) {
         $mainframe->setUserState($option . 'treeto_id', $tid[0]);
     }
     $treetows = $this->getModel('treeto');
     $treetows->set('name', 'treetows');
     $treetows->setId($mainframe->getUserState($option . 'treeto_id'));
     $view->setModel($treetows);
     switch ($this->getTask()) {
         case 'edit':
             $model = $this->getModel('treetonode');
             $viewType = $document->getType();
             $view = $this->getView('treetonode', $viewType);
             $view->setModel($model, true);
             // true is for the default model;
             $projectws = $this->getModel('project');
             $projectws->set('name', 'projectws');
             $projectws->setId($mainframe->getUserState($option . 'project', 0));
             $view->setModel($projectws);
             JRequest::setVar('hidemainmenu', 0);
             JRequest::setVar('layout', 'form');
             JRequest::setVar('view', 'treetonode');
             JRequest::setVar('edit', true);
             $model = $this->getModel('treetonode');
             $model->checkout();
             break;
     }
     parent::display();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:42,代码来源:treetonode.php

示例8: display

 function display()
 {
     global $mainframe, $option;
     $document =& JFactory::getDocument();
     $mainframe =& JFactory::getApplication();
     //$model		= $this->getModel ( 'modeljlextlmoimport' );
     $this->setMessage(JText::_('project selected'));
     switch ($this->getTask()) {
         case 'edit':
             JRequest::setVar('hidemainmenu', 0);
             JRequest::setVar('layout', 'form');
             JRequest::setVar('view', 'jlxmlimports');
             JRequest::setVar('edit', true);
             break;
             // 			case 'insert':
             // 				JRequest::setVar('hidemainmenu',0);
             // 				JRequest::setVar('layout','info');
             //         JRequest::setVar('view','jlxmlimports');
             // 				//JRequest::setVar('view','jlextlmoimport');
             // 				JRequest::setVar('edit',true);
             // 				break;
     }
     parent::display();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:24,代码来源:jlextlmoimports.php

示例9: import

 public function import()
 {
     JRequest::setVar('view', 'import');
     JRequest::setVar('table', 'eventtype');
     parent::display();
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:6,代码来源:eventtype.php

示例10: editlist

 public function editlist()
 {
     $option = $this->input->getCmd('option');
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $model = $this->getModel('teamplayers');
     $viewType = $document->getType();
     $view = $this->getView('teamplayers', $viewType);
     $view->setModel($model, true);
     // true is for the default model;
     $mdlProject = $this->getModel('project');
     $mdlProject->setId($app->getUserState($option . 'project', 0));
     $view->setModel($mdlProject);
     $mdlProjectteam = $this->getModel('projectteam');
     $mdlProjectteam->setId($app->getUserState($option . 'project_team_id', 0));
     $view->setModel($mdlProjectteam);
     JRequest::setVar('hidemainmenu', $this->input->getInt('hidemainmenu', 1));
     JRequest::setVar('layout', 'editlist');
     JRequest::setVar('view', 'teamplayers');
     JRequest::setVar('edit', true);
     parent::display($cachable, $urlparams);
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:22,代码来源:teamplayer.php

示例11: populate

 /**
  * display the populate form
  *
  */
 public function populate()
 {
     $option = JRequest::getCmd('option');
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $model = $this->getModel('round');
     $viewType = $document->getType();
     $view = $this->getView('rounds', $viewType);
     $view->setModel($model, true);
     // true is for the default model;
     $projectws = $this->getModel('project');
     $projectws->setId($app->getUserState($option . 'project', 0));
     $view->setModel($projectws);
     JRequest::setVar('hidemainmenu', 0);
     JRequest::setVar('view', 'rounds');
     JRequest::setVar('layout', 'populate');
     parent::display();
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:22,代码来源:round.php

示例12: copy

 /**
  * copy team to another project
  */
 public function copy()
 {
     $dest = JRequest::getInt('dest');
     $ptids = JRequest::getVar('ptids', array(), 'post', 'array');
     // check if this is the final step
     if (!$dest) {
         JRequest::setVar('view', 'projectteams');
         JRequest::setVar('layout', 'copy');
         return parent::display();
     }
     $msg = '';
     $type = 'message';
     $model = $this->getModel('projectteams');
     if (!$model->copy($dest, $ptids)) {
         $msg = $model->getError();
         $type = 'error';
     } else {
         $msg = JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_COPY_SUCCESS');
     }
     $this->setRedirect('index.php?option=com_joomleague&view=projectteams&task=projectteam.display', $msg, $type);
     $this->redirect();
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:25,代码来源:projectteam.php

示例13: edit

 function edit()
 {
     JRequest::setVar('hidemainmenu', 0);
     JRequest::setVar('view', 'settings');
     parent::display();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:6,代码来源:settings.php

示例14: import

 function import()
 {
     JRequest::setVar('view', 'import');
     JRequest::setVar('table', 'jlextuserextrafield');
     parent::display();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:6,代码来源:jlextuserextrafield.php

示例15: editlineup

 public function editlineup()
 {
     $option = JRequest::getCmd('option');
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $proj = $app->getUserState($option . 'project', 0);
     $post = JRequest::get('post');
     $cid = JRequest::getVar('cid', array(), 'get', 'array');
     JArrayHelper::toInteger($cid);
     $model = $this->getModel('match');
     $viewType = $document->getType();
     $view = $this->getView('match', $viewType);
     $view->setModel($model, true);
     // true is for the default model;
     $projectws = $this->getModel('project');
     $projectws->setId($app->getUserState($option . 'project', 0));
     $view->setModel($projectws);
     JRequest::setVar('hidemainmenu', 1);
     JRequest::setVar('layout', 'editlineup');
     JRequest::setVar('view', 'match');
     JRequest::setVar('edit', true);
     // Checkout the match
     $model->checkout();
     parent::display();
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:25,代码来源:match.php


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