{\$timetaken}: {\$timetook}
{else}{\$noresultsfound}
{/if} EOT; return $text; } function DefaultStopWords() { return $this->Lang('default_stopwords'); } function RemoveStopWordsFromArray($words) { $stop_words = preg_split("/[\s,]+/", $this->GetPreference('stopwords', $this->DefaultStopWords())); return array_diff($words, $stop_words); } function StemPhrase($phrase) { $this->load_tools(); return search_StemPhrase($this,$phrase); } function AddWords($module = 'Search', $id = -1, $attr = '', $content = '', $expires = NULL) { $this->load_tools(); return search_AddWords($this,$module,$id,$attr,$content,$expires); } function DeleteWords($module = 'Search', $id = -1, $attr = '') { $this->load_tools(); return search_DeleteWords($this,$module,$id,$attr); } function DeleteAllWords($module = 'Search', $id = -1, $attr = '') { $db = $this->GetDb(); $db->Execute('DELETE FROM '.cms_db_prefix().'module_search_index'); $db->Execute('DELETE FROM '.cms_db_prefix().'module_search_items'); @$this->SendEvent('SearchAllItemsDeleted',array($module, $id, $attr)); } function Reindex() { $this->load_tools(); return search_Reindex($this); } function DoEvent($originator,$eventname,&$params) { $this->load_tools(); return search_DoEvent($this, $originator, $eventname, $params); } function HasCapability($capability,$params = array()) { if( strtolower($capability) == 'search' ) return TRUE; return FALSE; } } # vim:ts=4 sw=4 noet ?>