PHP Class Horde_Imap_Client_Cache_Backend_Mongo, horde

Requires the Horde_Mongo class.
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Imap_Client_Cache_Backend, implements Horde_Mongo_Collection_Index
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_db MongoDB The MongoDB object for the cache data.
$_indices array The list of indices.

Méthodes publiques

Méthode Description
__construct ( array $params = [] ) Constructor.
checkMongoIndices ( )
clear ( $lifetime )
createMongoIndices ( )
deleteMailbox ( $mailbox )
deleteMsgs ( $mailbox, $uids )
get ( $mailbox, $uids, $fields, $uidvalid )
getCachedUids ( $mailbox, $uidvalid )
getMetaData ( $mailbox, $uidvalid, $entries )
set ( $mailbox, $data, $uidvalid )
setMetaData ( $mailbox, $data )

Méthodes protégées

Méthode Description
_createUid ( string $mailbox ) : string Create and return the UID for a mailbox/user/server combo.
_getUid ( string $mailbox ) : string Return the UID for a mailbox/user/server combo.
_initOb ( )
_value ( mixed | MongoBinData $data ) : mixed | MongoBinData Convert data from/to storage format.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $params = [] )
$params array Configuration parameters:
  - REQUIRED parameters:
    - mongo_db: (Horde_Mongo_Client) A MongoDB client object.

_createUid() protected méthode

Create and return the UID for a mailbox/user/server combo.
protected _createUid ( string $mailbox ) : string
$mailbox string Mailbox name.
Résultat string UID from base table.

_getUid() protected méthode

Return the UID for a mailbox/user/server combo.
protected _getUid ( string $mailbox ) : string
$mailbox string Mailbox name.
Résultat string UID from base table.

_initOb() protected méthode

protected _initOb ( )

_value() protected méthode

Convert data from/to storage format.
protected _value ( mixed | MongoBinData $data ) : mixed | MongoBinData
$data mixed | MongoBinData The data object.
Résultat mixed | MongoBinData The converted data.

checkMongoIndices() public méthode

public checkMongoIndices ( )

clear() public méthode

public clear ( $lifetime )

createMongoIndices() public méthode

public createMongoIndices ( )

deleteMailbox() public méthode

public deleteMailbox ( $mailbox )

deleteMsgs() public méthode

public deleteMsgs ( $mailbox, $uids )

get() public méthode

public get ( $mailbox, $uids, $fields, $uidvalid )

getCachedUids() public méthode

public getCachedUids ( $mailbox, $uidvalid )

getMetaData() public méthode

public getMetaData ( $mailbox, $uidvalid, $entries )

set() public méthode

public set ( $mailbox, $data, $uidvalid )

setMetaData() public méthode

public setMetaData ( $mailbox, $data )

Property Details

$_db protected_oe property

The MongoDB object for the cache data.
protected MongoDB $_db
Résultat MongoDB

$_indices protected_oe property

The list of indices.
protected array $_indices
Résultat array