PHP Class Horde_Imap_Client_Cache_Backend_Db, horde

Requires the Horde_Db package.
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Imap_Client_Cache_Backend
Exibir arquivo Open project: horde/horde

Protected Properties

Property Type Description
$_db Horde_Db_Adapter Handle for the database connection.

Public Methods

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 )
set ( $mailbox, $data, $uidvalid )
setMetaData ( $mailbox, $data )

Protected Methods

Method Description
_baseSql ( string $mailbox, string $join = null ) : array Prepare the base SQL query.
_createUid ( string $mailbox ) : string
_getUid ( string $mailbox ) : string
_initOb ( )

Method Details

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array Configuration parameters:
  - REQUIRED Parameters:
    - db: (Horde_Db_Adapter) DB object.

_baseSql() protected method

Prepare the base SQL query.
protected _baseSql ( string $mailbox, string $join = null ) : array
$mailbox string The mailbox.
$join string The table to join with the base table.
return array SQL query and bound parameters.

_createUid() protected method

protected _createUid ( string $mailbox ) : string
$mailbox string
return string UID from base table.

_getUid() protected method

protected _getUid ( string $mailbox ) : string
$mailbox string
return string UID from base table.

_initOb() protected method

protected _initOb ( )

clear() public method

public clear ( $lifetime )

deleteMailbox() public method

public deleteMailbox ( $mailbox )

deleteMsgs() public method

public deleteMsgs ( $mailbox, $uids )

get() public method

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

getCachedUids() public method

public getCachedUids ( $mailbox, $uidvalid )

getMetaData() public method

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

set() public method

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

setMetaData() public method

public setMetaData ( $mailbox, $data )

Property Details

$_db protected_oe property

Handle for the database connection.
protected Horde_Db_Adapter $_db
return Horde_Db_Adapter