本文整理汇总了PHP中ResultContext::getSearchExpression方法的典型用法代码示例。如果您正苦于以下问题:PHP ResultContext::getSearchExpression方法的具体用法?PHP ResultContext::getSearchExpression怎么用?PHP ResultContext::getSearchExpression使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ResultContext
的用法示例。
在下文中一共展示了ResultContext::getSearchExpression方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ResultContext
*
* This source code is free and modifiable under the terms of
* GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$vo_result = $this->getVar('result');
$vo_result_context = $this->getVar('result_context');
?>
<div id="resultBox">
<?php
if ($vo_result) {
$o_result_context = new ResultContext($this->request, 'ca_objects', 'basic_search');
$vs_search = ResultContext::getLastFind($this->request, 'ca_objects') == 'basic_browse' ? '' : $o_result_context->getSearchExpression();
?>
<div id="resultsSearchForm"><form name="artwork_Search" action="<?php
print caNavUrl($this->request, '', 'Search', 'Index');
?>
" method="get">
<input type="text" name="search" value="<?php
print $vs_search ? $vs_search : '';
?>
" autocomplete="off"/> <a href="#" name="searchButtonSubmit" onclick="document.forms.artwork_Search.submit(); return false;">Search</a>
<input type="hidden" name="target" value="ca_objects" />
<input type="hidden" name="view" value="full" />
</form></div><!-- end resultsSearchForm -->
<div id="pageHeadingResultsPage"><img src='<?php
print $this->request->getThemeUrlPath();
示例2: caNavLink
print "</form>\n";
}
?>
</div><!-- end topbar -->
<div id="pageArea">
<div id="header">
<?php
print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/" . $this->request->config->get('header_img') . "' border='0'>", "", "", "", "");
?>
<?php
// get last search ('basic_search' is the find type used by the SearchController)
$o_result_context = new ResultContext($this->request, 'ca_objects', 'basic_search');
$vs_search = $o_result_context->getSearchExpression();
?>
<div id="nav">
<div id="MFinto">
<?php
print $this->render('Splash/MF_text_html.php');
?>
</div>
<div id="search"><form name="header_search" action="<?php
print caNavUrl($this->request, '', 'Search', 'Index');
?>
" method="get">
<a href="#" name="searchButtonSubmit" onclick="document.forms.header_search.submit(); return false;"><?php
示例3: array
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$va_facets = $this->getVar('available_facets');
$va_facets_with_content = $this->getVar('facets_with_content');
$va_facet_info = $this->getVar('facet_info');
$va_criteria = is_array($this->getVar('criteria')) ? $this->getVar('criteria') : array();
$va_results = $this->getVar('result');
$o_result_context = $this->getVar('result_context');
$vs_browse_target = $this->getVar('target');
$vs_browse_type_code = $o_result_context->getTypeRestriction($vn_has_changed);
if (!$this->request->isAjax()) {
$o_result_context = new ResultContext($this->request, $vs_browse_target, 'basic_browse');
$vs_search = ResultContext::getLastFind($this->request, $vs_browse_target) == 'basic_browse' ? '' : $o_result_context->getSearchExpression();
?>
<div id="resultsSearchForm"><form name="browseSearch" action="<?php
print caNavUrl($this->request, '', 'Search', 'Index');
?>
" method="get">
<input type="text" name="search" value="<?php
print $vs_search ? $vs_search : '';
?>
" autocomplete="off"/> <a href="#" name="searchButtonSubmit" onclick="document.forms.browseSearch.submit(); return false;">Search</a>
<input type="hidden" name="target" value="<?php
print $vs_browse_target;
?>
" />
<input type="hidden" name="view" value="full" />
</form></div><!-- end resultsSearchForm -->