PHP Class g, kirby

Afficher le fichier Open project: bastianallgeier/kirby Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat mixed

set() static public méthode

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