[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/phpbb/cache/driver/ -> dummy.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * For full copyright and license information, please see
  10  * the docs/CREDITS.txt file.
  11  *
  12  */
  13  
  14  namespace phpbb\cache\driver;
  15  
  16  /**
  17  * ACM dummy Caching
  18  */
  19  class dummy extends \phpbb\cache\driver\base
  20  {
  21      /**
  22      * Set cache path
  23      */
  24  	function __construct()
  25      {
  26      }
  27  
  28      /**
  29      * {@inheritDoc}
  30      */
  31  	function load()
  32      {
  33          return true;
  34      }
  35  
  36      /**
  37      * {@inheritDoc}
  38      */
  39  	function unload()
  40      {
  41      }
  42  
  43      /**
  44      * {@inheritDoc}
  45      */
  46  	function save()
  47      {
  48      }
  49  
  50      /**
  51      * {@inheritDoc}
  52      */
  53  	function tidy()
  54      {
  55          global $config;
  56  
  57          // This cache always has a tidy room.
  58          $config->set('cache_last_gc', time(), false);
  59      }
  60  
  61      /**
  62      * {@inheritDoc}
  63      */
  64  	function get($var_name)
  65      {
  66          return false;
  67      }
  68  
  69      /**
  70      * {@inheritDoc}
  71      */
  72  	function put($var_name, $var, $ttl = 0)
  73      {
  74      }
  75  
  76      /**
  77      * {@inheritDoc}
  78      */
  79  	function purge()
  80      {
  81      }
  82  
  83      /**
  84      * {@inheritDoc}
  85      */
  86  	function destroy($var_name, $table = '')
  87      {
  88      }
  89  
  90      /**
  91      * {@inheritDoc}
  92      */
  93  	function _exists($var_name)
  94      {
  95          return false;
  96      }
  97  
  98      /**
  99      * {@inheritDoc}
 100      */
 101  	function sql_load($query)
 102      {
 103          return false;
 104      }
 105  
 106      /**
 107      * {@inheritDoc}
 108      */
 109  	function sql_save(\phpbb\db\driver\driver_interface $db, $query, $query_result, $ttl)
 110      {
 111          return $query_result;
 112      }
 113  
 114      /**
 115      * {@inheritDoc}
 116      */
 117  	function sql_exists($query_id)
 118      {
 119          return false;
 120      }
 121  
 122      /**
 123      * {@inheritDoc}
 124      */
 125  	function sql_fetchrow($query_id)
 126      {
 127          return false;
 128      }
 129  
 130      /**
 131      * {@inheritDoc}
 132      */
 133  	function sql_fetchfield($query_id, $field)
 134      {
 135          return false;
 136      }
 137  
 138      /**
 139      * {@inheritDoc}
 140      */
 141  	function sql_rowseek($rownum, $query_id)
 142      {
 143          return false;
 144      }
 145  
 146      /**
 147      * {@inheritDoc}
 148      */
 149  	function sql_freeresult($query_id)
 150      {
 151          return false;
 152      }
 153  }


Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1