Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Copyright 2013-2017 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Copyright: 2013-2017 Horde LLC
License: http://www.horde.org/licenses/lgpl21 LGPL 2.1
File Size: 407 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Imap_Client_Cache_Backend_Db:: (13 methods):
  __construct()
  _initOb()
  get()
  getCachedUids()
  set()
  getMetaData()
  setMetaData()
  deleteMsgs()
  deleteMailbox()
  clear()
  _baseSql()
  _getUid()
  _createUid()


Class: Horde_Imap_Client_Cache_Backend_Db  - X-Ref

A SQL database implementation for caching IMAP/POP data.
Requires the Horde_Db package.

__construct(array $params = array()   X-Ref
Constructor.

param: array $params  Configuration parameters:

_initOb()   X-Ref
No description

get($mailbox, $uids, $fields, $uidvalid)   X-Ref
No description

getCachedUids($mailbox, $uidvalid)   X-Ref
No description

set($mailbox, $data, $uidvalid)   X-Ref
No description

getMetaData($mailbox, $uidvalid, $entries)   X-Ref
No description

setMetaData($mailbox, $data)   X-Ref
No description

deleteMsgs($mailbox, $uids)   X-Ref
No description

deleteMailbox($mailbox)   X-Ref
No description

clear($lifetime)   X-Ref
No description

_baseSql($mailbox, $join = null)   X-Ref
Prepare the base SQL query.

param: string $mailbox  The mailbox.
param: string $join     The table to join with the base table.
return: array  SQL query and bound parameters.

_getUid($mailbox)   X-Ref

param: string $mailbox
return: string  UID from base table.

_createUid($mailbox)   X-Ref

param: string $mailbox
return: string  UID from base table.