Property | Type | Description | |
---|---|---|---|
$_data | array | The working data for the current pageload. All changes take place to this data. | |
$_hash | Horde_HashTable | HashTable object. | |
$_mbox | array | Mailbox level data. | |
$_pack | Horde_Pack | Horde_Pack singleton object. | |
$_update | array | Keys are mailboxes. Values are arrays with three possible keys:
- d: UIDs to delete - m: Was metadata updated? - u: UIDs to update |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
clear ( $lifetime ) | ||
deleteMailbox ( $mailbox ) | ||
deleteMsgs ( $mailbox, $uids ) | ||
get ( $mailbox, $uids, $fields, $uidvalid ) | ||
getCachedUids ( $mailbox, $uidvalid ) | ||
getMetaData ( $mailbox, $uidvalid, $entries ) | ||
save ( ) | Updates the cache. | |
set ( $mailbox, $data, $uidvalid ) | ||
setMetaData ( $mailbox, $data ) |
Method | Description | |
---|---|---|
_getCid ( string $mailbox ) : string | Create the unique ID used to store the mailbox data in the cache. | |
_getMsgCids ( string $mailbox, array $ids ) : array | Return a list of cache IDs for mailbox/UID pairs. | |
_initOb ( ) | ||
_loadMailbox ( string $mailbox, integer $uidvalid = null ) | Loads basic mailbox information. | |
_loadUids ( string $mailbox, array $uids, integer $uidvalid = null ) | Load UIDs by regenerating from the cache. |
public __construct ( array $params = [] ) | ||
$params | array | Configuration parameters:
- REQUIRED parameters: - hashtable: (Horde_HashTable) A HashTable object. - Optional Parameters: - lifetime: (integer) The lifetime of the cache data (in seconds). DEFAULT: 604800 seconds (1 week) [@since 2.19.0] |
protected _loadMailbox ( string $mailbox, integer $uidvalid = null ) | ||
$mailbox | string | The mailbox to load. |
$uidvalid | integer | The IMAP uidvalidity value of the mailbox. |
protected array $_data | ||
return | array |
protected Horde_HashTable $_hash | ||
return | Horde_HashTable |
protected Horde_Pack $_pack | ||
return | Horde_Pack |
- d: UIDs to delete - m: Was metadata updated? - u: UIDs to update
protected array $_update | ||
return | array |