includes/acm/acm_null.php
changeset 0 ceef6d64c21d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/includes/acm/acm_null.php	Wed Mar 07 16:41:10 2012 +0400
     1.3 @@ -0,0 +1,156 @@
     1.4 +<?php
     1.5 +/**
     1.6 +*
     1.7 +* @package acm
     1.8 +* @version $Id$
     1.9 +* @copyright (c) 2005, 2009 phpBB Group
    1.10 +* @license http://opensource.org/licenses/gpl-license.php GNU Public License
    1.11 +*
    1.12 +*/
    1.13 +
    1.14 +/**
    1.15 +* @ignore
    1.16 +*/
    1.17 +if (!defined('IN_PHPBB'))
    1.18 +{
    1.19 +	exit;
    1.20 +}
    1.21 +
    1.22 +/**
    1.23 +* ACM Null Caching
    1.24 +* @package acm
    1.25 +*/
    1.26 +class acm
    1.27 +{
    1.28 +	/**
    1.29 +	* Set cache path
    1.30 +	*/
    1.31 +	function acm()
    1.32 +	{
    1.33 +	}
    1.34 +
    1.35 +	/**
    1.36 +	* Load global cache
    1.37 +	*/
    1.38 +	function load()
    1.39 +	{
    1.40 +		return true;
    1.41 +	}
    1.42 +
    1.43 +	/**
    1.44 +	* Unload cache object
    1.45 +	*/
    1.46 +	function unload()
    1.47 +	{
    1.48 +	}
    1.49 +
    1.50 +	/**
    1.51 +	* Save modified objects
    1.52 +	*/
    1.53 +	function save()
    1.54 +	{
    1.55 +	}
    1.56 +
    1.57 +	/**
    1.58 +	* Tidy cache
    1.59 +	*/
    1.60 +	function tidy()
    1.61 +	{
    1.62 +		// This cache always has a tidy room.
    1.63 +		set_config('cache_last_gc', time(), true);
    1.64 +	}
    1.65 +
    1.66 +	/**
    1.67 +	* Get saved cache object
    1.68 +	*/
    1.69 +	function get($var_name)
    1.70 +	{
    1.71 +		return false;
    1.72 +	}
    1.73 +
    1.74 +	/**
    1.75 +	* Put data into cache
    1.76 +	*/
    1.77 +	function put($var_name, $var, $ttl = 0)
    1.78 +	{
    1.79 +	}
    1.80 +
    1.81 +	/**
    1.82 +	* Purge cache data
    1.83 +	*/
    1.84 +	function purge()
    1.85 +	{
    1.86 +	}
    1.87 +
    1.88 +	/**
    1.89 +	* Destroy cache data
    1.90 +	*/
    1.91 +	function destroy($var_name, $table = '')
    1.92 +	{
    1.93 +	}
    1.94 +
    1.95 +	/**
    1.96 +	* Check if a given cache entry exist
    1.97 +	*/
    1.98 +	function _exists($var_name)
    1.99 +	{
   1.100 +		return false;
   1.101 +	}
   1.102 +
   1.103 +	/**
   1.104 +	* Load cached sql query
   1.105 +	*/
   1.106 +	function sql_load($query)
   1.107 +	{
   1.108 +		return false;
   1.109 +	}
   1.110 +
   1.111 +	/**
   1.112 +	* Save sql query
   1.113 +	*/
   1.114 +	function sql_save($query, &$query_result, $ttl)
   1.115 +	{
   1.116 +	}
   1.117 +
   1.118 +	/**
   1.119 +	* Ceck if a given sql query exist in cache
   1.120 +	*/
   1.121 +	function sql_exists($query_id)
   1.122 +	{
   1.123 +		return false;
   1.124 +	}
   1.125 +
   1.126 +	/**
   1.127 +	* Fetch row from cache (database)
   1.128 +	*/
   1.129 +	function sql_fetchrow($query_id)
   1.130 +	{
   1.131 +		return false;
   1.132 +	}
   1.133 +
   1.134 +	/**
   1.135 +	* Fetch a field from the current row of a cached database result (database)
   1.136 +	*/
   1.137 +	function sql_fetchfield($query_id, $field)
   1.138 +	{
   1.139 +		return false;
   1.140 +	}
   1.141 +
   1.142 +	/**
   1.143 +	* Seek a specific row in an a cached database result (database)
   1.144 +	*/
   1.145 +	function sql_rowseek($rownum, $query_id)
   1.146 +	{
   1.147 +		return false;
   1.148 +	}
   1.149 +
   1.150 +	/**
   1.151 +	* Free memory used for a cached database result (database)
   1.152 +	*/
   1.153 +	function sql_freeresult($query_id)
   1.154 +	{
   1.155 +		return false;
   1.156 +	}
   1.157 +}
   1.158 +
   1.159 +?>
   1.160 \ No newline at end of file