|
TYPO3 API
SVNRelease
|
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 2009-2011 Ingo Renner <ingo@typo3.org> 00006 * All rights reserved 00007 * 00008 * This script is part of the TYPO3 project. The TYPO3 project is 00009 * free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * The GNU General Public License can be found at 00015 * http://www.gnu.org/copyleft/gpl.html. 00016 * 00017 * This script is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * This copyright notice MUST APPEAR in all copies of the script! 00023 ***************************************************************/ 00024 00025 00026 /** 00027 * A caching backend which forgets everything immediately 00028 * 00029 * This file is a backport from FLOW3 00030 * 00031 * @package TYPO3 00032 * @subpackage t3lib_cache 00033 * @api 00034 * @version $Id: class.t3lib_cache_backend_nullbackend.php 10121 2011-01-18 20:15:30Z ohader $ 00035 */ 00036 class t3lib_cache_backend_NullBackend extends t3lib_cache_backend_AbstractBackend { 00037 00038 /** 00039 * Acts as if it would save data 00040 * 00041 * @param string ignored 00042 * @param string ignored 00043 * @param array ignored 00044 * @param integer ignored 00045 * @return void 00046 * @author Robert Lemke <robert@typo3.org> 00047 */ 00048 public function set($entryIdentifier, $data, array $tags = array(), $lifetime = NULL) { 00049 } 00050 00051 /** 00052 * Returns False 00053 * 00054 * @param string ignored 00055 * @return boolean FALSE 00056 * @author Robert Lemke <robert@typo3.org> 00057 */ 00058 public function get($entryIdentifier) { 00059 return FALSE; 00060 } 00061 00062 /** 00063 * Returns False 00064 * 00065 * @param string ignored 00066 * @return boolean FALSE 00067 * @author Robert Lemke <robert@typo3.org> 00068 */ 00069 public function has($entryIdentifier) { 00070 return FALSE; 00071 } 00072 00073 /** 00074 * Does nothing 00075 * 00076 * @param string ignored 00077 * @return boolean FALSE 00078 * @author Robert Lemke <robert@typo3.org> 00079 */ 00080 public function remove($entryIdentifier) { 00081 return FALSE; 00082 } 00083 00084 /** 00085 * Returns an empty array 00086 * 00087 * @param string ignored 00088 * @return array An empty array 00089 * @author Robert Lemke <robert@typo3.org> 00090 */ 00091 public function findIdentifiersByTag($tag) { 00092 return array(); 00093 } 00094 00095 /** 00096 * Returns an empty array 00097 * 00098 * @param string ignored 00099 * @return array An empty array 00100 * @author Ingo Renner <ingo@typo3.org> 00101 */ 00102 public function findIdentifiersByTags(array $tags) { 00103 return array(); 00104 } 00105 00106 /** 00107 * Does nothing 00108 * 00109 * @return void 00110 * @author Robert Lemke <robert@typo3.org> 00111 */ 00112 public function flush() { 00113 } 00114 00115 /** 00116 * Does nothing 00117 * 00118 * @param string ignored 00119 * @return void 00120 * @author Robert Lemke <robert@typo3.org> 00121 */ 00122 public function flushByTag($tag) { 00123 } 00124 00125 /** 00126 * Does nothing 00127 * 00128 * @param array ignored 00129 * @return void 00130 * @author Ingo Renner <ingo@typo3.org> 00131 */ 00132 public function flushByTags(array $tags) { 00133 } 00134 00135 /** 00136 * Does nothing 00137 * 00138 * @return void 00139 * @author Karsten Dambekalns <karsten@typo3.org> 00140 */ 00141 public function collectGarbage() { 00142 } 00143 } 00144 00145 00146 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/cache/backend/class.t3lib_cache_backend_nullbackend.php'])) { 00147 include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/cache/backend/class.t3lib_cache_backend_nullbackend.php']); 00148 } 00149 00150 ?>
1.8.0