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


PHP SearchHelper::getActions方法代碼示例

本文整理匯總了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');
 }
開發者ID:joebushi,項目名稱:joomla,代碼行數:15,代碼來源:view.html.php

示例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');
 }
開發者ID:laiello,項目名稱:senluonirvana,代碼行數:19,代碼來源:view.html.php

示例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 
開發者ID:reechalee,項目名稱:joomla1.6,代碼行數:31,代碼來源:default.php


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