$_baseob
$_baseob : \Horde_Imap_Client_Base
Base client object.
An interface to cache data retrieved from the IMAP server.
$_baseob : \Horde_Imap_Client_Base
Base client object.
$_backend : \Horde_Imap_Client_Cache_Backend
Storage backend.
$_debug : \Horde_Imap_Client_Base_Debug
Debug output.
__construct(array $params = array())
Constructor.
array | $params | Configuration parameters: - REQUIRED Parameters: - backend: (Horde_Imap_Client_Cache_Backend) The cache backend. - baseob: (Horde_Imap_Client_Base) The base client object. - Optional Parameters: - debug: (Horde_Imap_Client_Base_Debug) Debug object. DEFAULT: No debug output |
get(string $mailbox, array $uids = array(), array $fields = array(), integer $uidvalid = null) : array
Get information from the cache.
string | $mailbox | An IMAP mailbox string. |
array | $uids | The list of message UIDs to retrieve information for. If empty, returns the list of cached UIDs. |
array | $fields | An array of fields to retrieve. If empty, returns all cached fields. |
integer | $uidvalid | The IMAP uidvalidity value of the mailbox. |
An array of arrays with the UID of the message as the key (if found) and the fields as values (will be undefined if not found). If $uids is empty, returns the full (unsorted) list of cached UIDs.
set(string $mailbox, array $data, integer $uidvalid)
Store information in cache.
string | $mailbox | An IMAP mailbox string. |
array | $data | The list of data to save. The keys are the UIDs, the values are an array of information to save. If empty, do a check to make sure the uidvalidity is still valid. |
integer | $uidvalid | The IMAP uidvalidity value of the mailbox. |
getMetaData(string $mailbox, integer $uidvalid = null, array $entries = array()) : array
Get metadata information for a mailbox.
string | $mailbox | An IMAP mailbox string. |
integer | $uidvalid | The IMAP uidvalidity value of the mailbox. |
array | $entries | An array of entries to return. If empty, returns all metadata. |
The requested metadata. Requested entries that do not exist will be undefined. The following entries are defaults and always present:
setMetaData(string $mailbox, integer $uidvalid, array $data = array())
Set metadata information for a mailbox.
string | $mailbox | An IMAP mailbox string. |
integer | $uidvalid | The IMAP uidvalidity value of the mailbox. |
array | $data | The list of data to save. The keys are the metadata IDs, the values are the associated data. The following labels are reserved: 'uidvalid'. |