|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
INIFile Parser Early access in init proceess! Avoid further dependencies like logging or other services Description: A Simpe Ini File Implementation to keep settings in a simple file instead of in a DB Based upon class.INIfile.php by Mircho Mirev mirch.nosp@m.o@ma.nosp@m.cropo.nosp@m.int..nosp@m.com Usage Examples: $ini = new IniFile("./ini.ini"); Read entire group in an associative array $grp = $ini->read_group("MAIN"); //prints the variables in the group if ($grp) for(reset($grp); $key=key($grp); next($grp)) { echo "GROUP ". More...
Collaboration diagram for ilIniFile:Public Member Functions | |
| __construct (string $a_ini_file_name) | |
| Constructor. More... | |
| read () | |
| read from ini file More... | |
| parse () | |
| load and parse an inifile More... | |
| write () | |
| save ini-file-data to filesystem More... | |
Data Fields | |
| string | $INI_FILE_NAME = "" |
| name of file More... | |
| string | $ERROR = "" |
| error var More... | |
| array | $GROUPS = array() |
| sections in ini-file More... | |
| string | $CURRENT_GROUP = "" |
| actual section More... | |
INIFile Parser Early access in init proceess! Avoid further dependencies like logging or other services Description: A Simpe Ini File Implementation to keep settings in a simple file instead of in a DB Based upon class.INIfile.php by Mircho Mirev mirch.nosp@m.o@ma.nosp@m.cropo.nosp@m.int..nosp@m.com Usage Examples: $ini = new IniFile("./ini.ini"); Read entire group in an associative array $grp = $ini->read_group("MAIN"); //prints the variables in the group if ($grp) for(reset($grp); $key=key($grp); next($grp)) { echo "GROUP ".
$key."=".$grp[$key]."<br>"; } //set a variable to a value $ini->setVariable("NEW","USER","JOHN"); //Save the file $ini->save_data();
Definition at line 47 of file class.ilIniFile.php.
| ilIniFile::__construct | ( | string | $a_ini_file_name | ) |
Constructor.
Definition at line 72 of file class.ilIniFile.php.
References error().
Here is the call graph for this function:| ilIniFile::parse | ( | ) |
load and parse an inifile
Definition at line 102 of file class.ilIniFile.php.
References Vendor\Package\$e, and error().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilIniFile::read | ( | ) |
read from ini file
Definition at line 85 of file class.ilIniFile.php.
References error(), and parse().
Here is the call graph for this function:| ilIniFile::write | ( | ) |
save ini-file-data to filesystem
Definition at line 130 of file class.ilIniFile.php.
References $res, error(), ILIAS\User\Profile\ChangeMail\next, readGroup(), and readGroups().
Referenced by ilGlobalCacheSettingsAdapter\storeToIniFile().
Here is the call graph for this function:
Here is the caller graph for this function:| string ilIniFile::$CURRENT_GROUP = "" |
actual section
Definition at line 67 of file class.ilIniFile.php.
| string ilIniFile::$ERROR = "" |
| array ilIniFile::$GROUPS = array() |
sections in ini-file
Definition at line 62 of file class.ilIniFile.php.
| string ilIniFile::$INI_FILE_NAME = "" |
name of file
Definition at line 52 of file class.ilIniFile.php.