The IMP_Search:: class contains all code related to mailbox searching in IMP.
The class uses the $_SESSION['imp']['search'] variable to store information across page accesses. The format of that entry is as follows:
$_SESSION['imp']['search'] = array( 'q' => array( 'id_1' => array( 'query' => IMAP_Search_Query object (serialized), 'folders' => array (List of folders to search), 'uiinfo' => array (Info used by search.php to render page), 'label' => string (Description of search), 'vfolder' => boolean (True if this is a Virtual Folder) ), 'id_2' => array( .... ), .... ), 'vtrash_id' => string (The Virtual Trash query ID), 'vinbox_id' => string (The Virtual Inbox query ID) );
$Horde: imp/lib/Search.php,v 1.37.10.47 2009/01/06 15:24:04 jan Exp $
Copyright 2002-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
Located in /lib/Search.php (line 53)
Constructor.
'id' -- The ID of the search query in use.
Add a virtual folder for the current user.
Creates a search query.
Create the canonical search ID for a given search query.
Creates the IMAP search query in the IMP session.
Add a virtual INBOX folder for the current user.
Add a virtual trash folder for the current user.
Deletes an IMAP search query.
Returns a link to delete a given search query.
Returns a link to edit a given search query.
Return the base flag fields.
Generates the label to use for search results.
Get the list of searchable folders for the given search query.
Return a list of search queries valid only for the current session (i.e. no virtual folders).
Is the current active folder an editable Virtual Folder?
Is the given mailbox a search mailbox?
Is the given mailbox a virtual folder?
Determines whether a virtual folder ID is the Virtual INBOX Folder.
Determines whether a virtual folder ID is the Virtual Trash Folder.
Return a list of IDs and query labels, sorted by the label.
Retrieves the previously stored search UI information.
Run a search.
Run a search query not stored in the current session. Allows custom queries with custom sorts to be used without affecting cached mailboxes.
Return the base search fields.
Get the ID for the search mailbox, if we are currently in a search mailbox.
Return search query text representation for a given search ID.
Set up IMP_Search variables for the current session.
Documentation generated on Sun, 30 Jan 2011 05:28:16 +0000 by phpDocumentor 1.4.3