Public Member Functions | |
ini ($file, $config=null) | |
read conf from file | |
addConstant ($name, $value) | |
add a new constant to current conf | |
forceSaveFile () | |
delete file before saving it | |
saveFile () | |
save this configuration to disk | |
readFile () | |
read configuration file | |
dumpConstants () | |
dump constants to STDOUT | |
importConstants () | |
import constants as php constant | |
completeFromDefault () | |
read configuration, deleting unknown variables, and creating missing one | |
Public Attributes | |
$config | |
description of fields, types, default_value | |
$file | |
file containing this configuration file | |
$conf = array() | |
array<string> containing the configuration | |
$file_exists | |
boolean to report success to the user |
ini::addConstant | ( | $ | name, | |
$ | value | |||
) |
add a new constant to current conf
ini::completeFromDefault | ( | ) |
read configuration, deleting unknown variables, and creating missing one
ini::dumpConstants | ( | ) |
dump constants to STDOUT
ini::forceSaveFile | ( | ) |
delete file before saving it
ini::importConstants | ( | ) |
import constants as php constant
ini::ini | ( | $ | file, | |
$ | config = null | |||
) |
read conf from file
the file will be read, and each constants will be exported as php constants
ini::readFile | ( | ) |
read configuration file
ini::saveFile | ( | ) |
save this configuration to disk
ini::$conf = array() |
array<string> containing the configuration
ini::$config |
description of fields, types, default_value
ini::$file |
file containing this configuration file
ini::$file_exists |
boolean to report success to the user