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.
Exception 

If the configuration file is corrupt.

See also

UnbUser::GetSettings()

Member of class: UnbConfiguration

Implementation file: configuration.class.php, line 108

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.