PHP Class c, kirby

Inheritance: use trait t
Afficher le fichier Open project: bastianallgeier/kirby Class Usage Examples

Méthodes publiques

Méthode Description
get ( string $key = null, mixed $default = null ) : mixed Gets a config value by key
load ( string $file ) : array Loads an additional config file Returns the entire configuration array
set ( string $key, mixed $value = null ) Sets a config value by key

Method Details

get() static public méthode

Gets a config value by key
static public get ( string $key = null, mixed $default = null ) : mixed
$key string The key to look for. Pass false to get the entire config array
$default mixed The default value, which will be returned if the key has not been found
Résultat mixed The found config value

load() static public méthode

Loads an additional config file Returns the entire configuration array
static public load ( string $file ) : array
$file string The path to the config file
Résultat array The entire config array

set() static public méthode

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