當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JLToolBarHelper::addNew方法代碼示例

本文整理匯總了PHP中JLToolBarHelper::addNew方法的典型用法代碼示例。如果您正苦於以下問題:PHP JLToolBarHelper::addNew方法的具體用法?PHP JLToolBarHelper::addNew怎麽用?PHP JLToolBarHelper::addNew使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JLToolBarHelper的用法示例。


在下文中一共展示了JLToolBarHelper::addNew方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: addToolbar

 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_DIVS_TITLE'));
     JLToolBarHelper::addNew('division.add');
     JLToolBarHelper::editList('division.edit');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_DIVISIONS_DELETE_WARNING'), 'division.remove');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
開發者ID:hfmprs,項目名稱:JoomLeague,代碼行數:13,代碼來源:view.html.php

示例2: addToolbar

 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_TITLE'), 'Tree');
     JLToolBarHelper::apply('treeto.saveshort');
     JLToolBarHelper::publishList('treeto.publish');
     JLToolBarHelper::unpublishList('treeto.unpublish');
     JToolBarHelper::divider();
     JLToolBarHelper::addNew('treeto.save');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_WARNING'), 'treeto.remove');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
開發者ID:Heart1010,項目名稱:JoomLeague,代碼行數:12,代碼來源:view.html.php

示例3: addToolbar

 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_TITLE'), 'Tree');
     JLToolBarHelper::apply('treeto.saveshort');
     JLToolBarHelper::publishList('treeto.publish');
     JLToolBarHelper::unpublishList('treeto.unpublish');
     JToolBarHelper::divider();
     JLToolBarHelper::addNew('treeto.save');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_WARNING'), 'treeto.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
 }
開發者ID:santas156,項目名稱:joomleague-2-komplettpaket,代碼行數:13,代碼來源:view.html.php

示例4: display

 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $document =& JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $optiontext = strtoupper(JRequest::getCmd('option') . '_');
     $this->assignRef('optiontext', $optiontext);
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_ASSOCIATIONS_TITLE'), 'generic.png');
     // 		JToolBarHelper::addNewX();
     // 		JToolBarHelper::editListX();
     JLToolBarHelper::addNew('jlextassociation.add');
     JLToolBarHelper::editList('jlextassociation.edit');
     JToolBarHelper::custom('jlextassociation.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false);
     JToolBarHelper::archiveList('jlextassociation.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'));
     //JToolBarHelper::deleteList();
     JLToolBarHelper::deleteList('', 'jlextassociation.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
     $filter_order = $mainframe->getUserStateFromRequest($option . 'assoc_filter_order', 'filter_order', 'objassoc.ordering', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'assoc_filter_order_Dir', 'filter_order_Dir', '', 'word');
     $search = $mainframe->getUserStateFromRequest($option . 'assoc_search', 'search', '', 'string');
     $search = JString::strtolower($search);
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $pagination =& $this->get('Pagination');
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     // search filter
     $lists['search'] = $search;
     $this->assignRef('user', JFactory::getUser());
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('request_url', $uri->toString());
     parent::display($tpl);
 }
開發者ID:santas156,項目名稱:joomleague-2-komplettpaket,代碼行數:41,代碼來源:view.html.php


注:本文中的JLToolBarHelper::addNew方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。