Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
   1  <?php
   2  /**
   3   * Copyright 2013-2017 Horde LLC (http://www.horde.org/)
   4   *
   5   * See the enclosed file LICENSE for license information (LGPL). If you
   6   * did not receive this file, see http://www.horde.org/licenses/lgpl21.
   7   *
   8   * @category  Horde
   9   * @copyright 2013-2017 Horde LLC
  10   * @license   http://www.horde.org/licenses/lgpl21 LGPL 2.1
  11   * @package   Imap_Client
  12   */
  13  
  14  /**
  15   * A null backend class for storing cached IMAP/POP data.
  16   *
  17   * @author    Michael Slusarz <slusarz@horde.org>
  18   * @category  Horde
  19   * @copyright 2013-2017 Horde LLC
  20   * @license   http://www.horde.org/licenses/lgpl21 LGPL 2.1
  21   * @package   Imap_Client
  22   */
  23  class Horde_Imap_Client_Cache_Backend_Null
  24  extends Horde_Imap_Client_Cache_Backend
  25  {
  26      /**
  27       */
  28      public function get($mailbox, $uids, $fields, $uidvalid)
  29      {
  30          return array();
  31      }
  32  
  33      /**
  34       */
  35      public function getCachedUids($mailbox, $uidvalid)
  36      {
  37          return array();
  38      }
  39  
  40      /**
  41       */
  42      public function set($mailbox, $data, $uidvalid)
  43      {
  44      }
  45  
  46      /**
  47       */
  48      public function getMetaData($mailbox, $uidvalid, $entries)
  49      {
  50          return array(
  51              'uidvalid' => 0
  52          );
  53      }
  54  
  55      /**
  56       */
  57      public function setMetaData($mailbox, $data)
  58      {
  59      }
  60  
  61      /**
  62       */
  63      public function deleteMsgs($mailbox, $uids)
  64      {
  65      }
  66  
  67      /**
  68       */
  69      public function deleteMailbox($mailbox)
  70      {
  71      }
  72  
  73      /**
  74       */
  75      public function clear($lifetime)
  76      {
  77      }
  78  
  79  }