Solar_Config::get()

static public mixed Solar_Config::get ( string $class = NULL , string $key = NULL , mixed $val = NULL )

Safely gets a configuration class array or key value.

Parameters

  • (string) $class: The name of the class. If not set, returns the entire configuration array.

  • (string) $key: The name of the key in the class. If not set, returns the whole array for that class.

  • (mixed) $val: If the class or key is not set, return this value instead. If this is not set and class was requested, returns an empty array; if not set and a key was requested, returns null.

Returns

  • (mixed) The value of the configuration class or key.

Description

Safely gets a configuration class array or key value.



Local