Свойство | Type | Description | |
---|---|---|---|
$_cache | Horde_Cache | The cache object. | |
$_data | array | The working data for the current pageload. All changes take place to this data. | |
$_loaded | array | The list of cache slices loaded. | |
$_slicemap | array | The mapping of UIDs to slices. | |
$_update | array | - slice: (array) List of slices that were modified. - slicemap: (boolean) Was slicemap info changed? |
Méthode | 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. | |
serialize ( ) | ||
set ( $mailbox, $data, $uidvalid ) | ||
setMetaData ( $mailbox, $data ) |
Méthode | Description | |
---|---|---|
_deleteMailbox ( string $mbox ) | Delete a mailbox from the cache. | |
_getCid ( string $mailbox, string $slice ) : string | Create the unique ID used to store the data in the cache. | |
_initOb ( ) | Initialization tasks. | |
_loadSlice ( string $mailbox, integer $slice ) | Load UIDs from a cache slice. | |
_loadSliceMap ( string $mailbox, integer $uidvalid = null ) | Load the slicemap for a given mailbox. The slicemap contains the uidvalidity information, the UIDs->slice lookup table, and any metadata that needs to be saved for the mailbox. | |
_loadUids ( string $mailbox, array $uids, integer $uidvalid = null ) | Load UIDs by regenerating from the cache. | |
_toUpdate ( string $mailbox, string $type, mixed $data ) | Add update entry for a mailbox. |
public __construct ( array $params = [] ) | ||
$params | array | Configuration parameters:
- REQUIRED Parameters: - cacheob: (Horde_Cache) The cache object to use. - Optional Parameters: - lifetime: (integer) The lifetime of the cache data (in seconds). DEFAULT: 1 week (604800 seconds) - slicesize: (integer) The slicesize to use. DEFAULT: 50 |
protected _deleteMailbox ( string $mbox ) | ||
$mbox | string | The mailbox to delete. |
protected _loadSlice ( string $mailbox, integer $slice ) | ||
$mailbox | string | The mailbox to load. |
$slice | integer | The slice to load. |
protected _loadSliceMap ( string $mailbox, integer $uidvalid = null ) | ||
$mailbox | string | The mailbox. |
$uidvalid | integer | The IMAP uidvalidity value of the mailbox. |
protected array $_data | ||
Résultat | array |
protected array $_loaded | ||
Résultat | array |
protected array $_slicemap | ||
Résultat | array |
protected array $_update | ||
Résultat | array |