XOOPS  2.6.0
Xoops\Core\Cache\Legacy Class Reference
Inheritance diagram for Xoops\Core\Cache\Legacy:
Inheritance graph

Public Member Functions

 __call ($name, $args)
 

Static Public Member Functions

static __callStatic ($name, $args)
 
static clear ()
 
static delete ($key)
 
static gc ()
 
static read ($key)
 
static write ($key, $value, $duration=0)
 

Static Private Member Functions

static deprecated ($message= 'Obsolete cache call.')
 
static getCache ()
 

Detailed Description

Definition at line 23 of file Legacy.php.

Member Function Documentation

Xoops\Core\Cache\Legacy::__call (   $name,
  $args 
)

catch all deprecated message

Parameters
string$nameignored
array$argsignored
Returns
false

Definition at line 135 of file Legacy.php.

References $name.

static Xoops\Core\Cache\Legacy::__callStatic (   $name,
  $args 
)
static

catch all deprecated message for static methods

Parameters
string$nameignored
array$argsignored
Returns
false

Definition at line 149 of file Legacy.php.

References $name.

static Xoops\Core\Cache\Legacy::clear ( )
static

Delete all keys from the cache

Returns
boolean True if the cache was successfully cleared, false otherwise

Definition at line 120 of file Legacy.php.

static Xoops\Core\Cache\Legacy::delete (   $key)
static

Delete a key from the cache

Parameters
string$keyIdentifier for the data
Returns
boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed

Definition at line 108 of file Legacy.php.

Referenced by mod_clearConfig().

Here is the caller graph for this function:

static Xoops\Core\Cache\Legacy::deprecated (   $message = 'Obsolete cache call.')
staticprivate

issue deprecated warning

Parameters
string$messagemessage to show, or empty to use default
Returns
void

Definition at line 31 of file Legacy.php.

References Xoops\getInstance().

Here is the call graph for this function:

static Xoops\Core\Cache\Legacy::gc ( )
static

Garbage collection

Returns
boolean true on success

Definition at line 60 of file Legacy.php.

static Xoops\Core\Cache\Legacy::getCache ( )
staticprivate

get default cache

Returns
Access cache access object

Definition at line 50 of file Legacy.php.

static Xoops\Core\Cache\Legacy::read (   $key)
static

Read a key from the cache

Parameters
string$keyIdentifier for the data
Returns
mixed The cached data, or false if the data has expired or cannot be read

Definition at line 94 of file Legacy.php.

Referenced by XoopsThemeBlocksPlugin\buildBlock(), XoopsCaptchaImageHandler\getList(), mod_loadConfig(), and mod_loadFile().

Here is the caller graph for this function:

static Xoops\Core\Cache\Legacy::write (   $key,
  $value,
  $duration = 0 
)
static

Write data for key into cache

Parameters
string$keyIdentifier for the data
mixed$valueData to be cached - anything except a resource
mixed$durationtime to live in seconds
Returns
boolean True if the data was successfully cached, false on failure

Definition at line 76 of file Legacy.php.

Referenced by XoopsThemeBlocksPlugin\buildBlock(), XoopsCaptchaImageHandler\getList(), mod_createFile(), and mod_loadConfig().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: