PHP Class g, kirby

Datei anzeigen Open project: bastianallgeier/kirby Class Usage Examples

Public Methods

Method Description
get ( mixed $key = null, mixed $default = null ) : mixed Gets an global value by key
set ( string $key, mixed $value = null ) Sets a global by key

Method Details

get() static public method

Gets an global value by key
static public get ( mixed $key = null, mixed $default = null ) : mixed
$key mixed The key to look for. Pass false or null to return the entire globals array.
$default mixed Optional default value, which should be returned if no element has been found
return mixed

set() static public method

Sets a global by key
static public set ( string $key, mixed $value = null )
$key string The key to define
$value mixed The value for the passed key