[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Summary view] [Print] [Text view]
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 Null Caching 18 */ 19 class null 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 // This cache always has a tidy room. 56 set_config('cache_last_gc', time(), true); 57 } 58 59 /** 60 * {@inheritDoc} 61 */ 62 function get($var_name) 63 { 64 return false; 65 } 66 67 /** 68 * {@inheritDoc} 69 */ 70 function put($var_name, $var, $ttl = 0) 71 { 72 } 73 74 /** 75 * {@inheritDoc} 76 */ 77 function purge() 78 { 79 } 80 81 /** 82 * {@inheritDoc} 83 */ 84 function destroy($var_name, $table = '') 85 { 86 } 87 88 /** 89 * {@inheritDoc} 90 */ 91 function _exists($var_name) 92 { 93 return false; 94 } 95 96 /** 97 * {@inheritDoc} 98 */ 99 function sql_load($query) 100 { 101 return false; 102 } 103 104 /** 105 * {@inheritDoc} 106 */ 107 function sql_save(\phpbb\db\driver\driver_interface $db, $query, $query_result, $ttl) 108 { 109 return $query_result; 110 } 111 112 /** 113 * {@inheritDoc} 114 */ 115 function sql_exists($query_id) 116 { 117 return false; 118 } 119 120 /** 121 * {@inheritDoc} 122 */ 123 function sql_fetchrow($query_id) 124 { 125 return false; 126 } 127 128 /** 129 * {@inheritDoc} 130 */ 131 function sql_fetchfield($query_id, $field) 132 { 133 return false; 134 } 135 136 /** 137 * {@inheritDoc} 138 */ 139 function sql_rowseek($rownum, $query_id) 140 { 141 return false; 142 } 143 144 /** 145 * {@inheritDoc} 146 */ 147 function sql_freeresult($query_id) 148 { 149 return false; 150 } 151 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |