本文整理汇总了PHP中SearchHelper::getActions方法的典型用法代码示例。如果您正苦于以下问题:PHP SearchHelper::getActions方法的具体用法?PHP SearchHelper::getActions怎么用?PHP SearchHelper::getActions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SearchHelper
的用法示例。
在下文中一共展示了SearchHelper::getActions方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _setToolbar
/**
* Setup the Toolbar.
*/
protected function _setToolbar()
{
$canDo = SearchHelper::getActions();
JToolBarHelper::title(JText::_('Search_Manager_Searches'), 'search.png');
JToolBarHelper::custom('searches.reset', 'refresh.png', 'refresh_f2.png', 'Reset', false);
JToolBarHelper::divider();
if ($canDo->get('core.admin')) {
JToolBarHelper::preferences('com_search');
}
JToolBarHelper::divider();
JToolBarHelper::help('screen.stats.searches');
}
示例2: addToolbar
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$canDo = SearchHelper::getActions();
JToolBarHelper::title(JText::_('COM_SEARCH_MANAGER_SEARCHES'), 'search.png');
if ($canDo->get('core.edit.state')) {
JToolBarHelper::custom('searches.reset', 'refresh.png', 'refresh_f2.png', 'JSEARCH_RESET', false);
}
JToolBarHelper::divider();
if ($canDo->get('core.admin')) {
JToolBarHelper::preferences('com_search');
}
JToolBarHelper::divider();
JToolBarHelper::help('JHELP_COMPONENTS_SEARCH');
}
示例3: defined
/**
* @version $Id: default.php 20899 2011-03-07 20:56:09Z ian $
* @package Joomla.Administrator
* @subpackage com_search
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::_('behavior.tooltip');
JHTML::_('script', 'system/multiselect.js', false, true);
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
$canDo = SearchHelper::getActions();
?>
<form action="<?php
echo JRoute::_('index.php?option=com_search&view=searches');
?>
" method="post" name="adminForm" id="adminForm">
<fieldset id="filter-bar">
<div class="filter-search fltlft">
<label class="filter-search-lbl" for="filter_search"><?php
echo JText::_('JSEARCH_FILTER_LABEL');
?>
</label>
<input type="text" name="filter_search" id="filter_search" value="<?php
echo $this->escape($this->state->get('filter.search'));
?>
" title="<?php