PHP 클래스 Horde_Imap_Client_Cache_Backend_Mongo, horde

Requires the Horde_Mongo class.
저자: Michael Slusarz ([email protected])
상속: extends Horde_Imap_Client_Cache_Backend, implements Horde_Mongo_Collection_Index
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_db MongoDB The MongoDB object for the cache data.
$_indices array The list of indices.

공개 메소드들

메소드 설명
__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 )

보호된 메소드들

메소드 설명
_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.

메소드 상세

__construct() 공개 메소드

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

_createUid() 보호된 메소드

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

_getUid() 보호된 메소드

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

_initOb() 보호된 메소드

protected _initOb ( )

_value() 보호된 메소드

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

checkMongoIndices() 공개 메소드

public checkMongoIndices ( )

clear() 공개 메소드

public clear ( $lifetime )

createMongoIndices() 공개 메소드

public createMongoIndices ( )

deleteMailbox() 공개 메소드

public deleteMailbox ( $mailbox )

deleteMsgs() 공개 메소드

public deleteMsgs ( $mailbox, $uids )

get() 공개 메소드

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

getCachedUids() 공개 메소드

public getCachedUids ( $mailbox, $uidvalid )

getMetaData() 공개 메소드

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

set() 공개 메소드

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

setMetaData() 공개 메소드

public setMetaData ( $mailbox, $data )

프로퍼티 상세

$_db 보호되어 있는 프로퍼티

The MongoDB object for the cache data.
protected MongoDB $_db
리턴 MongoDB

$_indices 보호되어 있는 프로퍼티

The list of indices.
protected array $_indices
리턴 array