本文整理汇总了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);
}
示例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);
}
示例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'));
}
示例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);
}