/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
20.1.1 by galaxyAbstractor
* Added an simple admin panel to the codeviewer-cmssy stuff
1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
/**
3
 * CodeIgniter
4
 *
5
 * An open source application development framework for PHP 4.3.2 or newer
6
 *
7
 * @package		CodeIgniter
8
 * @author		ExpressionEngine Dev Team
9
 * @copyright	Copyright (c) 2006 - 2012 EllisLab, Inc.
10
 * @license		http://codeigniter.com/user_guide/license.html
11
 * @link		http://codeigniter.com
12
 * @since		Version 2.0
13
 * @filesource
14
 */
15
16
// ------------------------------------------------------------------------
17
18
/**
19
 * CodeIgniter Dummy Caching Class
20
 *
21
 * @package		CodeIgniter
22
 * @subpackage	Libraries
23
 * @category	Core
24
 * @author		ExpressionEngine Dev Team
25
 * @link
26
 */
27
28
class CI_Cache_dummy extends CI_Driver {
29
30
	/**
31
	 * Get
32
	 *
33
	 * Since this is the dummy class, it's always going to return FALSE.
34
	 *
35
	 * @param 	string
36
	 * @return 	Boolean		FALSE
37
	 */
38
	public function get($id)
39
	{
40
		return FALSE;
41
	}
42
43
	// ------------------------------------------------------------------------
44
45
	/**
46
	 * Cache Save
47
	 *
48
	 * @param 	string		Unique Key
49
	 * @param 	mixed		Data to store
50
	 * @param 	int			Length of time (in seconds) to cache the data
51
	 *
52
	 * @return 	boolean		TRUE, Simulating success
53
	 */
54
	public function save($id, $data, $ttl = 60)
55
	{
56
		return TRUE;
57
	}
58
59
	// ------------------------------------------------------------------------
60
61
	/**
62
	 * Delete from Cache
63
	 *
64
	 * @param 	mixed		unique identifier of the item in the cache
65
	 * @param 	boolean		TRUE, simulating success
66
	 */
67
	public function delete($id)
68
	{
69
		return TRUE;
70
	}
71
72
	// ------------------------------------------------------------------------
73
74
	/**
75
	 * Clean the cache
76
	 *
77
	 * @return 	boolean		TRUE, simulating success
78
	 */
79
	public function clean()
80
	{
81
		return TRUE;
82
	}
83
84
	// ------------------------------------------------------------------------
85
86
	/**
87
	 * Cache Info
88
	 *
89
	 * @param 	string		user/filehits
90
	 * @return 	boolean		FALSE
91
	 */
92
	 public function cache_info($type = NULL)
93
	 {
94
		 return FALSE;
95
	 }
96
97
	// ------------------------------------------------------------------------
98
99
	/**
100
	 * Get Cache Metadata
101
	 *
102
	 * @param 	mixed		key to get cache metadata on
103
	 * @return 	boolean		FALSE
104
	 */
105
	public function get_metadata($id)
106
	{
107
		return FALSE;
108
	}
109
110
	// ------------------------------------------------------------------------
111
112
	/**
113
	 * Is this caching driver supported on the system?
114
	 * Of course this one is.
115
	 *
116
	 * @return TRUE;
117
	 */
118
	public function is_supported()
119
	{
120
		return TRUE;
121
	}
122
123
	// ------------------------------------------------------------------------
124
125
}
126
// End Class
127
128
/* End of file Cache_dummy.php */
129
/* Location: ./system/libraries/Cache/drivers/Cache_dummy.php */