本文整理汇总了PHP中RtiprintHelper::addSubmenu方法的典型用法代码示例。如果您正苦于以下问题:PHP RtiprintHelper::addSubmenu方法的具体用法?PHP RtiprintHelper::addSubmenu怎么用?PHP RtiprintHelper::addSubmenu使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RtiprintHelper
的用法示例。
在下文中一共展示了RtiprintHelper::addSubmenu方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayDefault
/**
* Execute and display a template : RT iPrint
*
* @access protected
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a JError object.
*
* @since 11.1
*/
protected function displayDefault($tpl = null)
{
$document = JFactory::getDocument();
$this->title = JText::_("RTIPRINT_LAYOUT_RT_IPRINT");
$document->title = $document->titlePrefix . $this->title . $document->titleSuffix;
$this->menu = RtiprintHelper::addSubmenu('cpanel', 'default', 'cpanel');
//Toolbar initialization
}
示例2: displayModal
/**
* Execute and display a template : Contents
*
* @access protected
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a JError object.
*
* @since 11.1
*/
protected function displayModal($tpl = null)
{
$document = JFactory::getDocument();
$this->title = JText::_("RTIPRINT_LAYOUT_CONTENTS");
$document->title = $document->titlePrefix . $this->title . $document->titleSuffix;
$this->model = $model = $this->getModel();
$this->state = $state = $this->get('State');
$state->set('context', 'thirdcontents.modal');
$this->items = $items = $this->get('Items');
$this->canDo = $canDo = RtiprintHelper::getActions();
$this->pagination = $this->get('Pagination');
$this->menu = RtiprintHelper::addSubmenu('contents', 'modal');
$lists = array();
$this->lists =& $lists;
//Toolbar initialization
JToolBarHelper::title(JText::_('RTIPRINT_LAYOUT_CONTENTS'), 'rtiprint_contents');
}
示例3: displayDefault
/**
* Execute and display a template : ControlPanel
*
* @access protected
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a JError object.
*
* @since 11.1
*/
protected function displayDefault($tpl = null)
{
$document = JFactory::getDocument();
$this->title = JText::_("RTIPRINT_LAYOUT_CONTROLPANEL");
$document->title = $document->titlePrefix . $this->title . $document->titleSuffix;
$this->model = $model = $this->getModel();
$this->state = $state = $this->get('State');
$state->set('context', 'changelogs.default');
$this->items = $items = $this->get('Items');
$this->canDo = $canDo = RtiprintHelper::getActions();
$this->pagination = $this->get('Pagination');
$this->menu = RtiprintHelper::addSubmenu('changelogs', 'default');
$this->mainmenu = RtiprintHelper::addSubmenu('changelogs', 'default', 'mainmenu');
$this->geographymenu = RtiprintHelper::addSubmenu('changelogs', 'default', 'geographymenu');
$this->systemmenu = RtiprintHelper::addSubmenu('changelogs', 'default', 'systemmenu');
$lists = array();
$this->lists =& $lists;
//Toolbar initialization
JToolBarHelper::title(JText::_('RTIPRINT_LAYOUT_CONTROLPANEL'), 'rtiprint_changelogs');
// Config
if ($model->canAdmin()) {
CkJToolBarHelper::preferences('com_rtiprint');
}
}
示例4: displayModal
/**
* Execute and display a template : PrinterModels
*
* @access protected
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a JError object.
*
* @since 11.1
*/
protected function displayModal($tpl = null)
{
$document = JFactory::getDocument();
$this->title = JText::_("RTIPRINT_LAYOUT_PRINTERMODELS");
$document->title = $document->titlePrefix . $this->title . $document->titleSuffix;
$this->model = $model = $this->getModel();
$this->state = $state = $this->get('State');
$state->set('context', 'printermdls.modal');
$this->items = $items = $this->get('Items');
$this->canDo = $canDo = RtiprintHelper::getActions();
$this->pagination = $this->get('Pagination');
$this->filters = $filters = $model->getForm('modal.filters');
$this->menu = RtiprintHelper::addSubmenu('printermdls', 'modal');
$lists = array();
$this->lists =& $lists;
//Filters
// Manufacturer
$modelManufacturer = CkJModel::getInstance('manufacturers', 'RtiprintModel');
$filters['filter_manufacturer']->jdomOptions = array('list' => $modelManufacturer->getItems());
// Limit
$filters['limit']->jdomOptions = array('pagination' => $this->pagination);
//Toolbar initialization
}