Property | Type | Description | |
---|---|---|---|
$enabled | boolean | Is this query enabled? |
Property | Type | Description | |
---|---|---|---|
$_cache | array | Cache results. | |
$_canEdit | boolean | Can this query be edited? | |
$_criteria | array | The search criteria (IMP_Search_Element objects). | |
$_id | string | The search ID. | |
$_label | string | The virtual folder label. | |
$_mboxes | array | The mailbox list. | |
$_nosave | array | List of serialize entries not to save. |
Method | Description | |
---|---|---|
__construct ( array $opts = [] ) | Constructor. | |
__get ( $name ) | ||
__toString ( ) : string | String representation of this object: the mailbox ID. | |
add ( IMP_Search_Element $elt ) | Add a search query element. | |
replace ( array $criteria = [] ) | Replace the search query with the given query. | |
runElementCallbacks ( IMP_Mailbox $mbox, array $ids ) : array | Reduce the sorted return ID list by running search element callbacks. | |
serialize ( ) : string | Serialization. | |
unserialize ( string $data ) | Unserialization. |
public __toString ( ) : string | ||
return | string | Mailbox ID. |
public add ( IMP_Search_Element $elt ) | ||
$elt | IMP_Search_Element | The search element to add. |
public runElementCallbacks ( IMP_Mailbox $mbox, array $ids ) : array | ||
$mbox | IMP_Mailbox | Mailbox. |
$ids | array | Sorted ID list. |
return | array | Sorted ID list. |
public unserialize ( string $data ) | ||
$data | string | Serialized data. |
protected array $_criteria | ||
return | array |
protected array $_nosave | ||
return | array |