UNB Components Code Reference

UnbSearch class

The search class provides search methods and handles search requests and their results.

It depends on the UnbDatabase class for a database connection. It also uses the classes UnbMessage, UnbMessageRevision, UnbTag and UnbUser to handle search queries and results related to those item types.

Public methods

S GetAllReplies

Finds all messages that directly or indirectly reference to a given message through their primary references.

S GetAllTagValues

Finds all values of a tag with user data.

S GetMessageTree No description available.
S Query

Processes a search query.

Private methods

   Class constructor

Private constructor, does nothing but preventing an unwanted instantiation of this class.

S ConstructSqlQuery

Constructs the database query to perform the search.

S GetAllReplies_rec

Recursion helper function for GetAllReplies.

S GetInaccessibleTagIds

Gets all tag IDs that the session user has no read access to.

S GetMessageTree_rec No description available.

Private fields

inaccessibleTagIds  –  default: null

Cached value from GetInaccessibleTagIds

Implementation file: search.class.php, line 21

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-06.