IMP_SearchThe 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)
string
addVFolder
(IMAP_Search_Query $query, array $folders, array $search, string $label, [string $id = null])
string
createSearchQuery
(IMAP_Search_Query $query, array $folders, array $search, string $label, [string $id = null])
Constructor IMP_Search (line 77)
Constructor.
'id' -- The ID of the search query in use.
addVFolder (line 342)
Add a virtual folder for the current user.
createQuery (line 887)
Creates a search query.
createSearchID (line 697)
Create the canonical search ID for a given search query.
createSearchQuery (line 191)
Creates the IMAP search query in the IMP session.
createVINBOXFolder (line 417)
Add a virtual INBOX folder for the current user.
createVTrashFolder (line 358)
Add a virtual trash folder for the current user.
deleteSearchQuery (line 215)
Deletes an IMAP search query.
deleteURL (line 623)
Returns a link to delete a given search query.
editURL (line 609)
Returns a link to edit a given search query.
flagFields (line 782)
Return the base flag fields.
getLabel (line 255)
Generates the label to use for search results.
getSearchFolders (line 519)
Get the list of searchable folders for the given search query.
getSearchQueries (line 532)
Return a list of search queries valid only for the current session (i.e. no virtual folders).
isEditableVFolder (line 479)
Is the current active folder an editable Virtual Folder?
isSearchMbox (line 641)
Is the given mailbox a search mailbox?
isVFolder (line 654)
Is the given mailbox a virtual folder?
isVINBOXFolder (line 463)
Determines whether a virtual folder ID is the Virtual INBOX Folder.
isVTrashFolder (line 407)
Determines whether a virtual folder ID is the Virtual Trash Folder.
listQueries (line 493)
Return a list of IDs and query labels, sorted by the label.
retrieveUIQuery (line 239)
Retrieves the previously stored search UI information.
runSearch (line 119)
Run a search.
runSearchQuery (line 171)
Run a search query not stored in the current session. Allows custom queries with custom sorts to be used without affecting cached mailboxes.
searchFields (line 707)
Return the base search fields.
searchMboxID (line 666)
Get the ID for the search mailbox, if we are currently in a search mailbox.
searchQueryText (line 556)
Return search query text representation for a given search ID.
sessionSetup (line 89)
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