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


PHP JToolBarHelper::addNew方法代码示例

本文整理汇总了PHP中JToolBarHelper::addNew方法的典型用法代码示例。如果您正苦于以下问题:PHP JToolBarHelper::addNew方法的具体用法?PHP JToolBarHelper::addNew怎么用?PHP JToolBarHelper::addNew使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JToolBarHelper的用法示例。


在下文中一共展示了JToolBarHelper::addNew方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = MessagesHelper::getActions();
     JToolBarHelper::title(JText::_('COM_MESSAGES_MANAGER_MESSAGES'), 'inbox.png');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('message.add');
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::publish('messages.publish', 'COM_MESSAGES_TOOLBAR_MARK_AS_READ');
         JToolBarHelper::unpublish('messages.unpublish', 'COM_MESSAGES_TOOLBAR_MARK_AS_UNREAD');
     }
     if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolBarHelper::divider();
         JToolBarHelper::deleteList('', 'messages.delete', 'JTOOLBAR_EMPTY_TRASH');
     } else {
         if ($canDo->get('core.edit.state')) {
             JToolBarHelper::divider();
             JToolBarHelper::trash('messages.trash');
         }
     }
     //JToolBarHelper::addNew('module.add');
     JToolBarHelper::divider();
     $bar = JToolBar::getInstance('toolbar');
     $bar->appendButton('Popup', 'options', 'COM_MESSAGES_TOOLBAR_MY_SETTINGS', 'index.php?option=com_messages&view=config&tmpl=component', 850, 400);
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_messages');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('JHELP_COMPONENTS_MESSAGING_INBOX');
 }
开发者ID:carmerin,项目名称:cesae-web,代码行数:37,代码来源:view.html.php

示例2: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $canDo = UsersHelper::getActions();
     JToolBarHelper::title(JText::_('COM_USERS_VIEW_USERS_TITLE'), 'user');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('user.add');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('user.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::publish('users.activate', 'COM_USERS_TOOLBAR_ACTIVATE', true);
         JToolBarHelper::unpublish('users.block', 'COM_USERS_TOOLBAR_BLOCK', true);
         JToolBarHelper::custom('users.unblock', 'unblock.png', 'unblock_f2.png', 'COM_USERS_TOOLBAR_UNBLOCK', true);
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'users.delete');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_users');
         JToolBarHelper::divider();
     }
     JToolBarHelper::help('JHELP_USERS_USER_MANAGER');
 }
开发者ID:exntu,项目名称:joomla-cms,代码行数:32,代码来源:view.html.php

示例3: _setToolbar

 /**
  * Setup the Toolbar.
  */
 protected function _setToolbar()
 {
     $state = $this->get('State');
     $canDo = TemplatesHelper::getActions();
     $isSite = $state->get('filter.client_id') == 0;
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('style.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::custom('styles.sethome', 'default.png', 'default_f2.png', 'Templates_Toolbar_Set_Home', true);
     }
     JToolBarHelper::title(JText::_('Templates_Manager_Styles'), 'thememanager');
     if ($canDo->get('core.create') && $isSite) {
         JToolBarHelper::addNew('styles.duplicate', 'Templates_Toolbar_Save_Copy');
     }
     if ($canDo->get('core.delete') && $isSite) {
         JToolBarHelper::deleteList('', 'styles.delete');
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::divider();
         JToolBarHelper::preferences('com_templates');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.templates');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:28,代码来源:view.html.php

示例4: addToolBar

 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_JUDOWNLOAD_MANAGER_TAGS'), 'tags');
     if ($this->groupCanDoManage) {
         if ($this->canDo->get('core.create')) {
             JToolBarHelper::addNew('tag.add');
         }
         if ($this->canDo->get('core.edit') || $this->canDo->get('core.edit.own')) {
             JToolBarHelper::editList('tag.edit');
         }
         if ($this->canDo->get('core.edit.state')) {
             JToolbarHelper::publish('tags.publish', 'JTOOLBAR_PUBLISH', true);
             JToolbarHelper::unpublish('tags.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         }
     }
     if ($this->groupCanDoDelete) {
         if ($this->canDo->get('core.delete')) {
             JToolBarHelper::deleteList('COM_JUDOWNLOAD_ARE_YOU_SURE_YOU_WANT_TO_DELETE_THESE_ITEMS', 'tags.delete');
         }
     }
     JToolBarHelper::divider();
     $bar = JToolBar::getInstance('toolbar');
     $bar->addButtonPath(JPATH_ADMINISTRATOR . "/components/com_judownload/helpers/button");
     $bar->appendButton('JUHelp', 'help', JText::_('JTOOLBAR_HELP'));
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:25,代码来源:view.html.php

示例5: __construct

 function __construct($default = array())
 {
     parent::__construct($default);
     $task = JRequest::getWord('task', '');
     switch ($task) {
         case 'add':
         case 'save':
         case 'apply':
         case 'edit':
             JToolBarHelper::apply();
             JToolBarHelper::save();
             JToolBarHelper::cancel();
             break;
         default:
             JToolBarHelper::addNew();
             JToolBarHelper::deleteList();
             JToolBarHelper::makeDefault('publish');
             break;
     }
     // Register Extra tasks
     JRequest::setVar('view', 'services');
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     $this->registerTask('publish', 'setDefault');
 }
开发者ID:Tommar,项目名称:remate,代码行数:25,代码来源:services.php

示例6: addToolBar

 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_OSBIT_COURSES'), 'courses');
     JToolBarHelper::addNew('course.add');
     JToolBarHelper::editList('course.edit');
     JToolBarHelper::deleteList('', 'courses.delete');
 }
开发者ID:untergasser,项目名称:osbit,代码行数:10,代码来源:view.html.php

示例7: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/contact.php';
     $canDo = ContactHelper::getActions($this->state->get('filter.category_id'));
     $user = JFactory::getUser();
     JToolBarHelper::title(JText::_('COM_CONTACT_MANAGER_CONTACTS'), 'contact.png');
     if ($canDo->get('core.create') || count($user->getAuthorisedCategories('com_contact', 'core.create')) > 0) {
         JToolBarHelper::addNew('contact.add', 'JTOOLBAR_NEW');
     }
     if ($canDo->get('core.edit') || $canDo->get('core.edit.own')) {
         JToolBarHelper::editList('contact.edit', 'JTOOLBAR_EDIT');
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::custom('contacts.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::custom('contacts.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true);
         JToolBarHelper::divider();
         JToolBarHelper::archiveList('contacts.archive', 'JTOOLBAR_ARCHIVE');
         JToolBarHelper::custom('contacts.checkin', 'checkin.png', 'checkin_f2.png', 'JTOOLBAR_CHECKIN', true);
     }
     if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'contacts.delete', 'JTOOLBAR_EMPTY_TRASH');
         JToolBarHelper::divider();
     } else {
         if ($canDo->get('core.edit.state')) {
             JToolBarHelper::trash('contacts.trash', 'JTOOLBAR_TRASH');
             JToolBarHelper::divider();
         }
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_contact');
         JToolBarHelper::divider();
     }
     JToolBarHelper::help('JHELP_COMPONENTS_CONTACTS_CONTACTS');
 }
开发者ID:Joomla-on-NoSQL,项目名称:LaMojo,代码行数:40,代码来源:view.html.php

示例8: addToolbar

 protected function addToolbar()
 {
     $user = JFactory::getUser();
     $par = JComponentHelper::getParams('com_djclassifieds');
     JToolBarHelper::title(JText::_('COM_DJCLASSIFIEDS_ITEMS'), 'generic.png');
     if ($user->authorise('core.create', 'com_djclassifieds')) {
         JToolBarHelper::addNew('item.add', 'JTOOLBAR_NEW');
     }
     if ($user->authorise('core.edit', 'com_djclassifieds')) {
         JToolBarHelper::editList('item.edit', 'JTOOLBAR_EDIT');
     }
     JToolBarHelper::divider();
     if ($user->authorise('core.admin', 'com_djclassifieds')) {
         if ($par->get('store_org_img', '1') == 1) {
             JToolBarHelper::custom('items.recreateThumbnails', 'move', 'move', JText::_('COM_DJCLASSIFIEDS_RECREATE_THUMBNAILS'), true, true);
         }
         JToolBarHelper::custom('items.resmushitThumbnails', 'loop', 'loop', JText::_('COM_DJCLASSIFIEDS_OPTIMIZE_THUMBNAILS'), true, true);
         JToolBarHelper::custom('items.generateCoordinates', 'refresh', 'refresh', JText::_('COM_DJCLASSIFIEDS_GENERATE_COORDINATES'), false, true);
         JToolBarHelper::divider();
     }
     if ($user->authorise('core.edit.state', 'com_djclassifieds')) {
         JToolBarHelper::custom('items.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::custom('items.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true);
         JToolBarHelper::custom('items.archive', 'archive.png', 'archive_f2.png', 'JTOOLBAR_ARCHIVE', true);
     }
     if ($user->authorise('core.delete', 'com_djclassifieds')) {
         JToolBarHelper::deleteList('', 'items.delete', 'JTOOLBAR_DELETE');
     }
     JToolBarHelper::divider();
     if ($user->authorise('core.admin', 'com_djclassifieds')) {
         JToolBarHelper::preferences('com_djclassifieds', 450, 800);
         JToolBarHelper::divider();
     }
 }
开发者ID:kidaa30,项目名称:lojinha,代码行数:34,代码来源:view.html.php

示例9: display

 function display($tpl = null)
 {
     $mainframe = JFactory::getApplication();
     $user = JFactory::getUser();
     $option = JRequest::getCmd('option');
     $view = JRequest::getCmd('view');
     $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
     $limitstart = $mainframe->getUserStateFromRequest($option . $view . '.limitstart', 'limitstart', 0, 'int');
     $filter_order = $mainframe->getUserStateFromRequest($option . $view . 'filter_order', 'filter_order', '', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . $view . 'filter_order_Dir', 'filter_order_Dir', '', 'word');
     $model = $this->getModel();
     $total = $model->getTotalGroups();
     if ($limitstart > $total - $limit) {
         $limitstart = max(0, (int) (ceil($total / $limit) - 1) * $limit);
         JRequest::setVar('limitstart', $limitstart);
     }
     $extraFieldGroups = $model->getGroups();
     $this->assignRef('rows', $extraFieldGroups);
     jimport('joomla.html.pagination');
     $pageNav = new JPagination($total, $limitstart, $limit);
     $this->assignRef('page', $pageNav);
     JToolBarHelper::title(JText::_('K2_EXTRA_FIELD_GROUPS'), 'k2.png');
     JToolBarHelper::deleteList('', 'remove', 'K2_DELETE');
     JToolBarHelper::editList();
     JToolBarHelper::addNew();
     if (K2_JVERSION != '15') {
         JToolBarHelper::preferences('com_k2', 550, 875, 'K2_PARAMETERS');
     } else {
         $toolbar = JToolBar::getInstance('toolbar');
         $toolbar->appendButton('Popup', 'config', 'Parameters', 'index.php?option=com_k2&view=settings');
     }
     $this->loadHelper('html');
     K2HelperHTML::subMenu();
     parent::display($tpl);
 }
开发者ID:grchis,项目名称:Site-Auto,代码行数:35,代码来源:view.html.php

示例10: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = ContentHelper::getActions($this->state->get('filter.category_id'));
     JToolBarHelper::title(JText::_('COM_CONTENT_FEATURED_TITLE'), 'featured.png');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('article.add');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('article.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::publish('articles.publish', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::unpublish('articles.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolBarHelper::divider();
         JToolBarHelper::archiveList('articles.archive');
         JToolBarHelper::checkin('articles.checkin');
         JToolBarHelper::custom('featured.delete', 'remove.png', 'remove_f2.png', 'JTOOLBAR_REMOVE', true);
     }
     if ($state->get('filter.published') == -2 && $canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'articles.delete', 'JTOOLBAR_EMPTY_TRASH');
         JToolBarHelper::divider();
     } elseif ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::trash('articles.trash');
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_content');
         JToolBarHelper::divider();
     }
     JToolBarHelper::help('JHELP_CONTENT_FEATURED_ARTICLES');
 }
开发者ID:acculitx,项目名称:fleetmatrixsite,代码行数:38,代码来源:view.html.php

示例11: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'jms.php';
     $state = $this->get('State');
     $canDo = JmsHelper::getActions($state->get('filter.category_id'));
     JToolBarHelper::title(JText::_('COM_JMS_TITLE_COUPONS'), 'coupon.png');
     //Check if the form exists before showing the add/edit buttons
     $formPath = JPATH_COMPONENT_ADMINISTRATOR . DS . 'views' . DS . 'coupon';
     if (file_exists($formPath)) {
         if ($canDo->get('core.create')) {
             JToolBarHelper::addNew('coupon.add', 'JTOOLBAR_NEW');
         }
         if ($canDo->get('core.edit')) {
             JToolBarHelper::editList('coupon.edit', 'JTOOLBAR_EDIT');
         }
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::divider();
         JToolBarHelper::custom('coupons.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::custom('coupons.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true);
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::archiveList('coupons.archive', 'JTOOLBAR_ARCHIVE');
     }
     if ($canDo->get('core.delete')) {
         JToolBarHelper::divider();
         JToolBarHelper::deleteList('', 'coupons.delete', 'JTOOLBAR_DELETE');
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::divider();
         JToolBarHelper::preferences('com_jms');
     }
 }
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:38,代码来源:view.html.php

示例12: display

 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('GURU_ORDER_MANAGER_TITLE'), 'generic.png');
     JToolBarHelper::custom('approve_order', 'publish', 'publish', JText::_('GURU_APROVE'), false);
     JToolBarHelper::custom('make_pending', 'forward.png', 'forward_f2.png', JText::_('GURU_MAKE_PENDING'), false);
     JToolBarHelper::addNew();
     JToolBarHelper::deleteList(JText::_('GURU_CONFIRM_DEL'));
     $orders = $this->get('Items');
     $pagination = $this->get('Pagination');
     $this->assignRef('orders', $orders);
     $this->assignRef('pagination', $pagination);
     @($configs->time_format = "Y-m-d");
     $now = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
     $tomorrow = $now + 3600 * 24;
     $start_month = mktime(0, 0, 0, date("m"), 1, date("Y"));
     $end_month = mktime(0, 0, 0, date("m") + 1, 1, date("Y")) - 3600 * 24;
     $start_month1 = mktime(0, 0, 0, date("m") - 1, 1, date("Y"));
     $end_month1 = mktime(0, 0, 0, date("m"), 1, date("Y")) - 3600 * 24;
     $dates['start_date']['today'] = date($configs->time_format);
     $dates['end_date']['today'] = date($configs->time_format);
     $dates['start_date']['yesterday'] = date($configs->time_format, $now - 3600 * 24);
     $dates['end_date']['yesterday'] = date($configs->time_format, $now - 3600 * 24);
     $dates['start_date']['lastweek'] = date($configs->time_format, $now - 3600 * 24 * 7);
     $dates['end_date']['lastweek'] = date($configs->time_format, $now);
     $dates['start_date']['thismonth'] = date($configs->time_format, $start_month);
     $dates['end_date']['thismonth'] = date($configs->time_format, $end_month);
     $dates['start_date']['lastmonth'] = date($configs->time_format, $start_month1);
     $dates['end_date']['lastmonth'] = date($configs->time_format, $end_month1);
     $this->assign("dates", $dates);
     $datetype = $this->get('DateType');
     $this->assignRef('datetype', $datetype);
     parent::display($tpl);
 }
开发者ID:JozefAB,项目名称:qk,代码行数:33,代码来源:view.html.php

示例13: addToolbar

 /**
  * Adds the page title and toolbar.
  *
  */
 protected function addToolbar()
 {
     $user = JFactory::getUser();
     $asset = 'com_pfdesigns';
     JToolBarHelper::title(JText::_('COM_PROJECTFORK_DESIGNS_ALBUMS_TITLE'), 'article.png');
     if ($user->authorise('core.create', $asset)) {
         JToolBarHelper::addNew('album.add');
     }
     if ($user->authorise('core.edit', $asset) || $user->authorise('core.edit.own', $asset)) {
         JToolBarHelper::editList('album.edit');
     }
     if ($user->authorise('core.edit.state', $asset)) {
         JToolBarHelper::divider();
         JToolBarHelper::publish('albums.publish', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::unpublish('albums.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolBarHelper::divider();
         JToolBarHelper::archiveList('albums.archive');
         JToolBarHelper::checkin('albums.checkin');
     }
     if ($this->state->get('filter.published') == -2 && $user->authorise('core.delete', $asset)) {
         JToolBarHelper::deleteList('', 'albums.delete', 'JTOOLBAR_EMPTY_TRASH');
         JToolBarHelper::divider();
     } elseif ($user->authorise('core.edit.state', $asset)) {
         JToolBarHelper::trash('albums.trash');
         JToolBarHelper::divider();
     }
     if (version_compare(JVERSION, '3', 'ge')) {
         JHtmlSidebar::setAction('index.php?option=com_pfdesigns&view=albums');
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_AUTHOR'), 'filter_author_id', JHtml::_('select.options', $this->authors, 'value', 'text', $this->state->get('filter.author_id')));
     }
 }
开发者ID:MrJookie,项目名称:pm,代码行数:36,代码来源:view.html.php

示例14: addButton

 public static function addButton()
 {
     $task = JRequest::getVar('task');
     $controller = JRequest::getVar('controller');
     switch (strtoupper($controller)) {
         case 'LOAINHA':
             $title = 'Loại nhà';
             break;
         case 'CAPCONGTRINH':
             $title = 'Cấp công trình';
             break;
         case 'TAISAN':
             $title = 'Tài sản';
             break;
         default:
             $title = '';
             break;
     }
     switch ($task) {
         case 'add':
         case 'edit':
             JToolBarHelper::save('save', 'Lưu và đóng');
             JToolBarHelper::cancel('cancel', 'Huỷ bỏ');
             break;
         default:
             JToolBarHelper::title(JText::_('Danh mục ' . $title . ': [Danh sách]'), 'generic.png');
             JToolBarHelper::addNew('add', 'Thêm mới');
             JToolBarHelper::deleteList(null, 'remove', 'Xóa');
             JToolBarHelper::publish('publish', 'Bật trạng thái');
             JToolBarHelper::unpublish('unpublish', 'Tắt trạng thái');
             break;
     }
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:33,代码来源:kekhaitaisan.php

示例15: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/faqs.php';
     $state = $this->get('State');
     $canDo = FaqsHelper::getActions($state->get('filter.category_id'));
     $user = JFactory::getUser();
     JToolBarHelper::title(JText::_('COM_FAQS_MANAGER_FAQS'), 'faqs.png');
     if (count($user->getAuthorisedCategories('com_faqs', 'core.create')) > 0) {
         JToolBarHelper::addNew('faq.add');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('faq.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::publish('faqs.publish', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::unpublish('faqs.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolBarHelper::divider();
         JToolBarHelper::archiveList('faqs.archive');
         JToolBarHelper::checkin('faqs.checkin');
     }
     if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'faqs.delete', 'JTOOLBAR_EMPTY_TRASH');
         JToolBarHelper::divider();
     } elseif ($canDo->get('core.edit.state')) {
         JToolBarHelper::trash('faqs.trash');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_faqs');
         JToolBarHelper::divider();
     }
     JToolBarHelper::help('JHELP_COMPONENTS_FAQS_LINKS');
 }
开发者ID:bubujie,项目名称:xixia,代码行数:39,代码来源:view.html.php


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