[ Index ] |
PHP Cross Reference of phpBB 3.0 Beta 3 |
[Source view] [Print]
(no description)
Copyright: | (c) 2005 phpBB Group |
License: | http://opensource.org/licenses/gpl-license.php GNU Public License |
Version: | $Id: fulltext_mysql.php,v 1.30 2006/10/14 14:56:44 acydburn Exp $ |
File Size: | 772 lines (20 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
fulltext_mysql:: (14 methods):
fulltext_mysql()
init()
split_keywords()
split_message()
keyword_search()
author_search()
index()
index_remove()
tidy()
create_index()
delete_index()
index_created()
index_stats()
get_stats()
Class: fulltext_mysql - X-Ref
fulltext_mysqlfulltext_mysql(&$error) X-Ref |
No description |
init() X-Ref |
Checks for correct MySQL version and stores min/max word length in the config |
split_keywords(&$keywords, $terms) X-Ref |
Splits keywords entered by a user into an array of words stored in $this->split_words Stores the tidied search query in $this->search_query param: string $keywords Contains the keyword as entered by the user param: string $terms is either 'all' or 'any' return: false if no valid keywords were found and otherwise true |
split_message($text) X-Ref |
Turns text into an array of words |
keyword_search($type, &$fields, &$terms, &$sort_by_sql, &$sort_key, &$sort_dir, &$sort_days, &$ex_fid_ary, &$m_approve_fid_ary, &$topic_id, &$author_ary, &$id_ary, $start, $per_page) X-Ref |
Performs a search on keywords depending on display specific params. param: array $id_ary passed by reference, to be filled with ids for the page specified by $start and $per_page, should be ordered param: int $start indicates the first index of the page param: int $per_page number of ids each page is supposed to contain return: total number of results |
author_search($type, &$sort_by_sql, &$sort_key, &$sort_dir, &$sort_days, &$ex_fid_ary, &$m_approve_fid_ary, &$topic_id, &$author_ary, &$id_ary, $start, $per_page) X-Ref |
Performs a search on an author's posts without caring about message contents. Depends on display specific params param: array $id_ary passed by reference, to be filled with ids for the page specified by $start and $per_page, should be ordered param: int $start indicates the first index of the page param: int $per_page number of ids each page is supposed to contain return: total number of results |
index($mode, $post_id, &$message, &$subject, $poster_id, $forum_id) X-Ref |
Destroys cached search results, that contained one of the new words in a post so the results won't be outdated. param: string $mode contains the post mode: edit, post, reply, quote ... |
index_remove($post_ids, $author_ids, $forum_ids) X-Ref |
Destroy cached results, that might be outdated after deleting a post |
tidy() X-Ref |
Destroy old cache entries |
create_index($acp_module, $u_action) X-Ref |
Create fulltext index |
delete_index($acp_module, $u_action) X-Ref |
Drop fulltext index |
index_created() X-Ref |
Returns true if both FULLTEXT indexes exist |
index_stats() X-Ref |
Returns an associative array containing information about the indexes |
get_stats() X-Ref |
No description |
Generated: Wed Nov 22 00:35:05 2006 | Cross-referenced by PHPXref 0.6 |