本文整理汇总了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;
}
}
示例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();
}
示例3: display
function display()
{
switch (JRequest::getVar('task')) {
case 'cancel':
$this->cancel();
break;
default:
JRequest::setVar('view', 'videoylist');
parent::display();
break;
}
}
示例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();
}
示例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;
}
示例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;
}
}
示例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;
}
}
示例8: display
/**
* Display
*
* @return void
*
* @since 1.7.0
*/
public function display()
{
JFactory::getApplication()->input->set('view', 'directory');
parent::display();
}
示例9: search
public function search()
{
parent::display(true);
}
示例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();
}
示例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();
}
示例12: display
function display($cachable = false)
{
JRequest::setVar('view', JRequest::getCmd('view', 'fieldsxref'));
parent::display($cachable);
}
示例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();
}
示例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();
}
示例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();
}