Sitellite Application Framework
Class Tree         Index         All Elements

Procedural File: Search.php

Source Location: Program_Root/Misc/Search.php



Classes:



Page Details:

Splits a search into an array of individual terms. Properly handles quoted strings as well, keeping them as a single literal term.









get_searchengine_keywords [line 84]

array get_searchengine_keywords( string $referer)

Check if the previous request was a search engine results page. If so, then parse the search keywords.



Tags:

return:  Search terms


Parameters

string   $referer   Referer URL
[ Top ]



saf_misc_search_content_filter [line 134]

string saf_misc_search_content_filter( string $body)

If you would like search terms to be automatically highlighted in your web pages, add 'filter 1 = "body: saf.Misc.Search"' to the modes.php file in your template set, under the appropriate output mode.



Parameters

string   $body  
[ Top ]



search_bar [line 72]

string search_bar( string $query, [string $url = '/index/sitellite-search-action'])

Returns a bar that displays "Highlighting Search Terms: a, b, c <Search Again>".



Parameters

string   $query  
string   $url  
[ Top ]



search_highlight [line 42]

string search_highlight( string $string, array $queries)

Highlights all of the query terms in the specified string, wrapping them in <span class="highlighted"></span> tags.

Source: http://www.ilovejackdaniels.com/php/google-style-keyword-highlighting/




Parameters

string   $string  
array   $queries  
[ Top ]



search_split_query [line 11]

void search_split_query( mixed $query)



[ Top ]



Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:19:01 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2