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


PHP RtiprintHelper::addSubmenu方法代码示例

本文整理汇总了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
 }
开发者ID:gwtrains,项目名称:comRTiPrint,代码行数:18,代码来源:view.html.php

示例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');
 }
开发者ID:gwtrains,项目名称:comRTiPrint,代码行数:27,代码来源:view.html.php

示例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');
     }
 }
开发者ID:gwtrains,项目名称:comRTiPrint,代码行数:34,代码来源:view.html.php

示例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
 }
开发者ID:gwtrains,项目名称:comRTiPrint,代码行数:33,代码来源:view.html.php


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