Recommend this page to a friend! |
Classes of Fernando Val | Springy | documentation/en/library/Configuration.md | Download |
|
DownloadConfigurationAboutConfiguration is a static class you can use to load system configurations and do not need create objects to access it. PropertiesThe class has no properties you can access directly. |Property|Type|Description| |---|---|---| |$confs|private static|An array with all configurations loaded| Public Methods|Name|Type|Description| |---|---|---| |get()|public static|Get the value of a configuration register.| |set()|public static|Set the value of a configuration register.| |load()|public static|Load a configuration file.| Methods Detailsget()This method gets a value of a configuration register.
The The You can pass Returns null if there is no entry for Sample:
set()This method changes the value of a configuration register during current application execution. The value will not be save in configuration file.
The The The Sample:
load()This method loads a configuration file. It is impliced called by get() if the configuration file was not read yet.
The Returns true if the file was loaded or throws a 500 error if the configuration file does not exists. Sample:
|