|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 $i, ILIAS\LTI\ToolProvider\$key, $res, error(), readGroup(), and readGroups().
Referenced by ilGlobalCacheSettings\writeToIniFile().
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.