nyroFwk  0.2
Static Public Member Functions | Private Member Functions | Static Private Attributes
cache Class Reference

Static Public Member Functions

static getInstance (array $cfg=array())
 
static idRequest (array $prm=array())
 

Private Member Functions

 __construct ()
 

Static Private Attributes

static $cfg
 

Detailed Description

Final class for cache

Definition at line 10 of file cache.class.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )
private

No instanciation for this class

Definition at line 22 of file cache.class.php.

Member Function Documentation

◆ getInstance()

static getInstance ( array  $cfg = array())
static

Get the unique cache instance

Parameters
array$cfgConfig for the cache instance
Returns
cache_abstract The instance

Definition at line 30 of file cache.class.php.

◆ idRequest()

static idRequest ( array  $prm = array())
static

Create an id depending on the request and options get, post, session or cookie

Parameters
array$prmConfiguration array with keys:
  • boolean uri Indicate if the uri should be used (default true)
  • array meth Which method used for creating the id (default array('get','post','session'))
Returns
string The id

Definition at line 45 of file cache.class.php.

Field Documentation

◆ $cfg

$cfg
staticprivate

Definition at line 17 of file cache.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by doxygen 1.8.13