UNB Components Code Reference

UnbConfiguration::Get method

Gets a configuration setting.

public static function UnbConfiguration::Get ($name, $default = null);

Parameters

name
(string) Setting name to get (max. 255 characters)
default  –  optional, default: null
(any) Default return value if no setting was found. This is only used if the name contains no wildcard character.

Return value

(string) configuration setting value or (array(name => data)) if fed with a wildcard

Remarks

You can get settings by wildcards: Put a * for multiple possible characters.

Exceptions thrown

InvalidArgumentException No description available.
LengthException No description available.
UnbDatabaseException No description available.

See also

UnbUser::GetSettings()

Member of class: UnbConfiguration

Implementation file: configuration.class.php, line 106

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.