JCache
Description
Joomla! Cache base object
Located in /joomla/cache/cache.php (line 27)
JObject (Subpackage Base) JCache (Subpackage Cache)
Direct descendents
Class | Description |
---|---|
JCacheCallback | Joomla! Cache callback type object |
JCachePage | Joomla! Cache page type object |
JCacheOutput | Joomla! Cache output type object |
JCacheView | Joomla! Cache view type object |
Method Summary
Methods
Constructor __construct (line 49)
Constructor
JCache
__construct
(array $options)
- array $options: options
Redefinition of:
- JObject::__construct()
- Class constructor, overridden in descendant classes.
clean (line 198)
Clean cache for a group given a mode.
group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group
boolean
clean
([string $group = null], [string $mode = 'group'])
- string $group: The cache data group
- string $mode: The mode for cleaning cache [group|notgroup]
get (line 127)
Get cached data by id and group
mixed
get
(string $id, [string $group = null])
- string $id: The cache data id
- string $group: The cache data group
Redefinition of:
- JObject::get()
- Returns a property of the object or the default value if the property is not set.
Redefined in descendants as:
- JCacheCallback::get() : Executes a cacheable callback if not found in cache else returns cached output and result
- JCachePage::get() : Get the cached page data
- JCacheView::get() : Get the cached view data
getInstance (line 68)
Returns a reference to a cache adapter object, only creating it if it doesn't already exist.
object A
&getInstance
([string $type = 'output'], [ $options = array()])
- string $type: The cache object type to instantiate
- $options
remove (line 173)
Remove a cached data entry by id and group
boolean
remove
(string $id, [string $group = null])
- string $id: The cache data id
- string $group: The cache data group
setCaching (line 87)
Set caching enabled state
void
setCaching
(boolean $enabled)
- boolean $enabled: True to enable caching
store (line 150)
Store the cached data by id and group
boolean
store
(mixed $data, string $id, [string $group = null])
- string $id: The cache data id
- string $group: The cache data group
- mixed $data: The data to store
Redefined in descendants as:
- JCachePage::store() : Stop the cache buffer and store the cached data
_getStorageHandler (line 227)
void
&_getStorageHandler
()
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getPublicProperties()
JObject::set()
JObject::toString()
Documentation generated on Mon, 05 Mar 2007 20:53:41 +0000 by phpDocumentor 1.3.1