Property | Type | Description | |
---|---|---|---|
$changed | boolean | Has the object data changed? |
Property | Type | Description | |
---|---|---|---|
$_search | array | Each subarray contains: Keys: mailbox IDs. Values: IMP_Search_Query objects. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
applyFilter ( string $id, array $mboxes, string $mid = null ) : IMP_Search_Query | Converts a filter to a search query and stores it in the local session. | |
createQuery ( array $criteria, array $opts = [] ) : IMP_Search_Query | Creates the IMAP search query. | |
createSearchId ( string $id ) : string | Create the canonical search ID for a given search query. | |
editUrl ( string $id ) : Horde_Url | Returns a link to edit a given search query. | |
getIterator ( ) | ||
init ( ) | Initialize session search data. | |
isFilter ( string $id, boolean $editable = false ) | Is a mailbox a filter query? | |
isQuery ( string $id, boolean $editable = false ) : boolean | Is a mailbox a search query? | |
isSearchMbox ( string $id ) : boolean | Is the given mailbox a search mailbox? | |
isSystemQuery ( string $id ) : boolean | Is a mailbox a system (built-in) search query? | |
isVFolder ( string $id, boolean $editable = false ) : boolean | Is a mailbox a virtual folder? | |
isVTrash ( string $id ) : boolean | Determines whether a mailbox ID is the Virtual Trash Folder. | |
isVinbox ( string $id ) : boolean | Determines whether a mailbox ID is the Virtual INBOX Folder. | |
offsetExists ( $offset ) | * ArrayAccess methods. | |
offsetGet ( $offset ) | ||
offsetSet ( string $offset, IMP_Search_Query $value ) | Alter the current IMAP search query. | |
offsetUnset ( string $offset ) | Deletes an IMAP search query. | |
serialize ( ) : string | Serialize. | |
setFilters ( array $filters ) | Saves the list of filters for the current user. | |
setVFolders ( array $vfolders ) | Saves the list of virtual folders for the current user. | |
unserialize ( string $data ) | Unserialize. |
Method | Description | |
---|---|---|
_getFilters ( ) | Loads the list of filters for the current user. | |
_getVFolders ( ) | Loads the list of virtual folders for the current user. | |
_strip ( string $id ) : string | Strip the identifying label from a mailbox ID. |
protected _getFilters ( ) |
protected _getVFolders ( ) |
public createQuery ( array $criteria, array $opts = [] ) : IMP_Search_Query | ||
$criteria | array | The search criteria array. |
$opts | array | Additional options: - id: (string) Use as the mailbox ID. - label: (string) The label to use for the search results. - mboxes: (array) The list of mailboxes to directly search. If this contains the IMP_Search_Query::ALLSEARCH constant, all mailboxes will be searched. - subfolders: (array) The list of mailboxes to do subfolder searches on. - type: (integer) Query type. |
return | IMP_Search_Query | Returns the query object. |
public createSearchId ( string $id ) : string | ||
$id | string | The mailbox query ID. |
return | string | The canonical search query ID. |
public isSearchMbox ( string $id ) : boolean | ||
$id | string | The mailbox name. |
return | boolean | Whether the given mailbox name is a search mailbox. |
public isSystemQuery ( string $id ) : boolean | ||
$id | string | The mailbox ID. |
return | boolean | True if a system search query. |
public offsetUnset ( string $offset ) | ||
$offset | string | The search query id. |
public setFilters ( array $filters ) | ||
$filters | array | The filter list. |
public setVFolders ( array $vfolders ) | ||
$vfolders | array | The virtual folder list. |
public unserialize ( string $data ) | ||
$data | string | Serialized data. |
protected array $_search | ||
return | array |