9 abstract class ElggCache implements \ArrayAccess {
 
   21         $this->variables = array();
 
   50         if (!is_array($this->variables)) {
 
   51             $this->variables = array();
 
   54         $this->variables[$variable] = 
$value;
 
   81         if (isset($this->variables[$variable])) {
 
   82             return $this->variables[$variable];
 
  130         return $this->
delete(
$key);
 
  164     abstract public function delete(
$key);
 
  184         if (!isset($this[
$key])) {
 
  230         if (isset($this->
$key)) {
 
  245         return isset($this->
$key);
 
__construct()
Set the constructor.
 
load($key, $offset=0, $limit=null)
Load data from the cache using a given key.
 
setVariable($variable, $value)
Set a cache variable.
 
__unset($key)
Supporting unsetting of magic attributes.
 
save($key, $data)
Save data in a cache.
 
get_variable($variable)
Get variables for this cache.
 
__isset($key)
Supporting isset, using $this->load() with default values.
 
offsetUnset($key)
Unsets a key.
 
add($key, $data)
Add a key only if it doesn't already exist.
 
getVariable($variable)
Get variables for this cache.
 
offsetExists($key)
Does key exist.
 
offsetGet($key)
Get the value for specified key.
 
set_variable($variable, $value)
Set a cache variable.
 
offsetSet($key, $value)
Assigns a value for the specified key.
 
clear()
Clear out all the contents of the cache.
 
__get($key)
Class member get overloading, returning key using $this->load defaults.
 
__set($key, $value)
Class member set overloading, setting a key using $this->save defaults.
 
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.