本文整理汇总了PHP中Toolbar::archiveList方法的典型用法代码示例。如果您正苦于以下问题:PHP Toolbar::archiveList方法的具体用法?PHP Toolbar::archiveList怎么用?PHP Toolbar::archiveList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Toolbar
的用法示例。
在下文中一共展示了Toolbar::archiveList方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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'));
Toolbar::title(Lang::txt('COM_CONTENT_FEATURED_TITLE'), 'featured.png');
if ($canDo->get('core.create')) {
Toolbar::addNew('article.add');
}
if ($canDo->get('core.edit')) {
Toolbar::editList('article.edit');
}
if ($canDo->get('core.edit.state')) {
Toolbar::divider();
Toolbar::publish('articles.publish', 'JTOOLBAR_PUBLISH', true);
Toolbar::unpublish('articles.unpublish', 'JTOOLBAR_UNPUBLISH', true);
Toolbar::divider();
Toolbar::archiveList('articles.archive');
Toolbar::checkin('articles.checkin');
Toolbar::custom('featured.delete', 'remove.png', 'remove_f2.png', 'JTOOLBAR_REMOVE', true);
}
if ($state->get('filter.published') == -2 && $canDo->get('core.delete')) {
Toolbar::deleteList('', 'articles.delete', 'JTOOLBAR_EMPTY_TRASH');
Toolbar::divider();
} elseif ($canDo->get('core.edit.state')) {
Toolbar::divider();
Toolbar::trash('articles.trash');
}
if ($canDo->get('core.admin')) {
Toolbar::preferences('com_content');
Toolbar::divider();
}
Toolbar::help('featured');
}
示例2: addToolbar
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$state = $this->get('State');
$canDo = NewsfeedsHelper::getActions($state->get('filter.category_id'));
Toolbar::title(Lang::txt('COM_NEWSFEEDS_MANAGER_NEWSFEEDS'), 'newsfeeds.png');
if (count(User::getAuthorisedCategories('com_newsfeeds', 'core.create')) > 0) {
Toolbar::addNew('newsfeed.add');
}
if ($canDo->get('core.edit')) {
Toolbar::editList('newsfeed.edit');
}
if ($canDo->get('core.edit.state')) {
Toolbar::divider();
Toolbar::publish('newsfeeds.publish', 'JTOOLBAR_PUBLISH', true);
Toolbar::unpublish('newsfeeds.unpublish', 'JTOOLBAR_UNPUBLISH', true);
Toolbar::divider();
Toolbar::archiveList('newsfeeds.archive');
}
if ($canDo->get('core.admin')) {
Toolbar::checkin('newsfeeds.checkin');
}
if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
Toolbar::deleteList('', 'newsfeeds.delete', 'JTOOLBAR_EMPTY_TRASH');
Toolbar::divider();
} elseif ($canDo->get('core.edit.state')) {
Toolbar::trash('newsfeeds.trash');
Toolbar::divider();
}
if ($canDo->get('core.admin')) {
Toolbar::preferences('com_newsfeeds');
Toolbar::divider();
}
Toolbar::help('JHELP_COMPONENTS_NEWSFEEDS_FEEDS');
}
示例3: defined
defined('_HZEXEC_') or die;
$canDo = Components\Members\Helpers\Admin::getActions('component');
// Menu
Toolbar::title(Lang::txt('COM_MEMBERS') . ': ' . Lang::txt('COM_MEMBERS_NOTES'), 'user');
if ($canDo->get('core.create')) {
Toolbar::addNew('note.add');
}
if ($canDo->get('core.edit')) {
Toolbar::editList('note.edit');
}
if ($canDo->get('core.edit.state')) {
Toolbar::divider();
Toolbar::publish('notes.publish', 'JTOOLBAR_PUBLISH', true);
Toolbar::unpublish('notes.unpublish', 'JTOOLBAR_UNPUBLISH', true);
Toolbar::divider();
Toolbar::archiveList('notes.archive');
Toolbar::checkin('notes.checkin');
}
if ($this->filters['state'] == -2 && $canDo->get('core.delete')) {
Toolbar::deleteList('', 'notes.delete', 'JTOOLBAR_EMPTY_TRASH');
Toolbar::divider();
} elseif ($canDo->get('core.edit.state')) {
Toolbar::trash('notes.trash');
Toolbar::divider();
}
if ($canDo->get('core.admin')) {
Toolbar::preferences('com_members');
Toolbar::divider();
}
Toolbar::help('notes');
?>
示例4: elseif
if ($canDo->get('core.create')) {
Toolbar::addNew();
}
if ($canDo->get('core.edit')) {
Toolbar::editList();
}
if ($canDo->get('core.edit.state')) {
if ($this->state->get('filter.state') != 2) {
Toolbar::divider();
Toolbar::publish('publish', 'JTOOLBAR_ENABLE', true);
Toolbar::unpublish('unpublish', 'JTOOLBAR_DISABLE', true);
}
if ($this->state->get('filter.state') != -1) {
Toolbar::divider();
if ($this->state->get('filter.state') != 2) {
Toolbar::archiveList('archive');
} elseif ($this->state->get('filter.state') == 2) {
Toolbar::unarchiveList('publish', 'JTOOLBAR_UNARCHIVE');
}
}
}
if ($this->state->get('filter.state') == -2 && $canDo->get('core.delete')) {
Toolbar::deleteList('', 'delete', 'JTOOLBAR_EMPTY_TRASH');
Toolbar::divider();
} elseif ($canDo->get('core.edit.state')) {
Toolbar::trash('trash');
Toolbar::divider();
}
if ($canDo->get('core.admin')) {
Toolbar::preferences('com_redirect');
Toolbar::divider();
示例5: addToolbar
/**
* Display the toolbar.
*
* @return void
*
* @since 2.5
*/
protected function addToolbar()
{
$canDo = UsersHelper::getActions();
Toolbar::title(Lang::txt('COM_USERS_VIEW_NOTES_TITLE'), 'user');
if ($canDo->get('core.create')) {
Toolbar::addNew('note.add');
}
if ($canDo->get('core.edit')) {
Toolbar::editList('note.edit');
}
if ($canDo->get('core.edit.state')) {
Toolbar::divider();
Toolbar::publish('notes.publish', 'JTOOLBAR_PUBLISH', true);
Toolbar::unpublish('notes.unpublish', 'JTOOLBAR_UNPUBLISH', true);
Toolbar::divider();
Toolbar::archiveList('notes.archive');
Toolbar::checkin('notes.checkin');
}
if ($this->state->get('filter.state') == -2 && $canDo->get('core.delete')) {
Toolbar::deleteList('', 'notes.delete', 'JTOOLBAR_EMPTY_TRASH');
Toolbar::divider();
} elseif ($canDo->get('core.edit.state')) {
Toolbar::trash('notes.trash');
Toolbar::divider();
}
if ($canDo->get('core.admin')) {
Toolbar::preferences('com_users');
Toolbar::divider();
}
Toolbar::help('notes');
}