[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/inc/ -> functions_search.php (summary)

MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved Website: http://mybb.com License: http://mybb.com/about/license

File Size: 1409 lines (36 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  make_searchable_forums()
  get_unsearchable_forums()
  get_password_protected_forums()
  clean_keywords()
  clean_keywords_ft()
  privatemessage_perform_search_mysql()
  perform_search_mysql()
  perform_search_mysql_ft()

Functions
Functions that are not part of a class:

make_searchable_forums($pid="0", $selitem='', $addselect="1", $depth='')   X-Ref
Build a select box list of forums the current user has permission to search

param: int The parent forum ID to start at
param: int The selected forum ID
param: int Add select boxes at this call or not
param: int The current depth
return: string The forum select boxes

get_unsearchable_forums($pid="0", $first=1)   X-Ref
Build a comma separated list of the forums this user cannot search

param: int The parent ID to build from
param: int First rotation or not (leave at default)
return: return a CSV list of forums the user cannot search

get_password_protected_forums($fids=array()   X-Ref
Build a array list of the forums this user cannot search due to password protection

param: int the fids to check (leave null to check all forums)
return: return a array list of password protected forums the user cannot search

clean_keywords($keywords)   X-Ref
Clean search keywords and make them safe for querying

param: string The keywords to be cleaned
return: string The cleaned keywords

clean_keywords_ft($keywords)   X-Ref
Clean search keywords for fulltext searching, making them safe for querying

param: string The keywords to be cleaned
return: string The cleaned keywords

privatemessage_perform_search_mysql($search)   X-Ref
Perform a thread and post search under MySQL or MySQLi

param: array Array of search data
return: array Array of search data with results mixed in

perform_search_mysql($search)   X-Ref
Perform a thread and post search under MySQL or MySQLi

param: array Array of search data
return: array Array of search data with results mixed in

perform_search_mysql_ft($search)   X-Ref
Perform a thread and post search under MySQL or MySQLi using boolean fulltext capabilities

param: array Array of search data
return: array Array of search data with results mixed in



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1