search.module

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

Версия 1.250.2.6 (checked in on 2009/03/10 at 17:20:01 by goba)

Позволяет проводить на сайте поиск по ключевым словам.

Константы

ИмяОписание
PREG_CLASS_CJKMatches all CJK characters that are candidates for auto-splitting (Chinese, Japanese, Korean). Contains kana and BMP ideographs.
PREG_CLASS_NUMBERSMatches all 'N' Unicode character classes (numbers)
PREG_CLASS_PUNCTUATIONMatches all 'P' Unicode character classes (punctuation)
PREG_CLASS_SEARCH_EXCLUDEMatches Unicode character classes to exclude from the search index.

Функции

ИмяОписание
do_searchDo a query on the full-text search index for a word or words.
search_blockРеализация hook_block().
search_boxКонструктор формы; Выводит форму поиска в блок и в специальную область в текущей теме. Смотри alsosearch_box_form_submit()
search_box_form_submitОбеспечивает отправку данных формы поиска.
search_commentImplementation of hook_comment().
search_cronРеализация hook_cron().
search_dataЗапускает стандартный поиск по заданным ключам и возвращает форматированный результат.
search_dirtyMarks a word as dirty (or retrieves the list of dirty words). This is used during indexing (cron). Words which are dirty have outdated total counts in the search_total table, and need to be recounted.
search_excerptВозвращает отрывки из части текста, с выделением найденных ключевых слов. Используется для форматирования результатов поиска.<
search_expand_cjkBasic CJK tokenizer. Simply splits a string into consecutive, overlapping sequences of characters ('minimum_word_size' long).
search_formВыводит форму поиска.
search_forms
search_get_keysHelper function for grabbing search keys.
search_helpРеализация hook_help().
search_indexОбновляет полнотекстовый поисковый индекс для указанного элемента.
search_index_splitSplits a string into tokens for indexing.
search_invoke_preprocessInvokes hook_search_preprocess() in modules.
search_menuРеализация hook_menu().
search_nodeapiImplementation of hook_nodeapi().
search_parse_queryParse a search query into SQL conditions.
search_permРеализация hook_perm().
search_query_extractExtract a module-specific search option from a search query. e.g. 'type:book'
search_query_insertReturn a query with the given module-specific search option inserted in. e.g. 'type:book'.
search_simplifySimplifies a string according to indexing rules.
search_themeРеализация hook_theme().
search_touch_nodeChange a node's changed timestamp to 'now' to force reindexing.
search_update_totalsThis function is called on shutdown to ensure that search_total is always up to date (even if cron times out or otherwise fails).
search_wipeWipes a part of or the entire search index.
template_preprocess_search_block_formОбрабатывает переменные для search-block-form.tpl.php.
template_preprocess_search_theme_formProcess variables for search-theme-form.tpl.php.
_search_excerpt_replaceHelper function for array_walk in search_except.
_search_index_truncateHelper function for array_walk in search_index_split.
_search_menu
_search_parse_queryHelper function for search_parse_query();
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему