API IniFile - SierraKomodo/INILib GitHub Wiki
IniFile
class
The Introduction
The IniFile class provides a single interface for reading, parsing, modifying, and writing INI data and files.
Class synopsis
IniFile {
/* Methods */
public void __construct ( string $file [, bool $readOnly = false [, int $scannerMode = INI_SCANNER_RAW ]]] )
public void deleteEntry ( string $section , string $key )
public void deleteSection ( string $section )
public array[array[mixed]] fetchDataArray ( void )
public mixed fetchEntry ( string $section , string $key )
public array[mixed]|null fetchSection ( string $section )
public void saveDataToFile( void )
public void setEntry ( string $section , string $key , string $value )
public void setSection ( string $section , array[mixed] $array [, bool $mergeArrays = false ])
}
Changelog
Version | Description |
---|---|
v1.0.0 | IniFile::Class introduced |
Table of Contents
- IniFile::__construct - Construct a new
IniFile
object - IniFile::deleteEntry - Deletes a
key=value
pair from a specified section header in memory - IniFile::deleteSection - Deletes a full section from memory
- IniFile::fetchDataArray - Gets the full INI data array from memory
- IniFile::fetchEntry - Gets a specified
key=value
pair from a specified section header in memory - IniFile::fetchSection - Gets a specified section array from memory
- IniFile::saveDataToFile - Saves configuration data from memory into the INI file
- IniFile::setEntry - Sets a
key=value
pair in a specified section header in memory - IniFile::setSection - Sets a full section in memory