registry
in package
This class is basically an Array cache, this means that you can define stuff to use it later.
This is especially useful when using if for static elements like CSS, breadcrumbs and scripts.
Tags
Table of Contents
- TYPE_BREADCRUMBS = 'breadcrumbs'
- TYPE_CSS = 'css'
- TYPE_SCRIPT = 'script'
- TYPE_SCRIPT_LIB = 'script_lib'
- $data : mixed
- get_as() : mixed
- read() : mixed
- store() : mixed
Constants
TYPE_BREADCRUMBS
public
mixed
TYPE_BREADCRUMBS
= 'breadcrumbs'
TYPE_CSS
public
mixed
TYPE_CSS
= 'css'
TYPE_SCRIPT
public
mixed
TYPE_SCRIPT
= 'script'
TYPE_SCRIPT_LIB
public
mixed
TYPE_SCRIPT_LIB
= 'script_lib'
Properties
$data
private
static mixed
$data
= array()
Methods
get_as()
public
static get_as(mixed $key, mixed $type) : mixed
Parameters
- $key : mixed
- $type : mixed
Return values
mixed —read()
public
static read(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —store()
public
static store(mixed $key, mixed $value[, mixed $append = false ]) : mixed
Parameters
- $key : mixed
- $value : mixed
- $append : mixed = false