|
| static | fromString ($ini, $sections=true, $mode=INI_SCANNER_TYPED) |
| | Parse a configuration string. More...
|
| |
| static | fromFile ($filename, $sections=true, $mode=INI_SCANNER_TYPED) |
| | Parse a configuration file. More...
|
| |
| static | toString ($data, $sections=true, $mode=INI_SCANNER_TYPED) |
| | Write a configuration string. More...
|
| |
| static | toFile ($filename, $data, $sections=true, $mode=INI_SCANNER_TYPED) |
| | Write a configuration file. More...
|
| |
Definition at line 5 of file Ini.php.
◆ fromFile()
| static fromFile |
( |
|
$filename, |
|
|
|
$sections = true, |
|
|
|
$mode = INI_SCANNER_TYPED |
|
) |
| |
|
static |
Parse a configuration file.
- Parameters
-
| string | $filename | The filename of the ini file being parsed. |
| bool | $sections | Include the sections names in the keys. |
| int | $mode | INI_SCANNER_NORMAL, INI_SCANNER_RAW, or INI_SCANNER_TYPED. |
- See also
- http://php.net/parse_ini_file
Definition at line 24 of file Ini.php.
◆ fromString()
| static fromString |
( |
|
$ini, |
|
|
|
$sections = true, |
|
|
|
$mode = INI_SCANNER_TYPED |
|
) |
| |
|
static |
Parse a configuration string.
- Parameters
-
| string | $ini | The contents of the ini file being parsed. |
| bool | $sections | Include the sections names in the keys. |
| int | $mode | INI_SCANNER_NORMAL, INI_SCANNER_RAW, or INI_SCANNER_TYPED. |
- See also
- http://php.net/parse_ini_string
Definition at line 14 of file Ini.php.
◆ stringEncode()
| static stringEncode |
( |
|
$prefix, |
|
|
|
$data, |
|
|
|
$mode |
|
) |
| |
|
staticprotected |
Encode a configuration value.
- Parameters
-
| string | $prefix | Key prefix. |
| mixed | $data | Value (single or array). |
| int | $mode | INI_SCANNER_NORMAL, INI_SCANNER_RAW, or INI_SCANNER_TYPED. |
- Returns
- string
Definition at line 34 of file Ini.php.
◆ toFile()
| static toFile |
( |
|
$filename, |
|
|
|
$data, |
|
|
|
$sections = true, |
|
|
|
$mode = INI_SCANNER_TYPED |
|
) |
| |
|
static |
Write a configuration file.
- Parameters
-
| string | $filename | The filename of the ini file. |
| array | $data | Multidimensional array. |
| bool | $sections | Use sections (first evel of data). |
| int | $mode | INI_SCANNER_NORMAL, INI_SCANNER_RAW, or INI_SCANNER_TYPED. |
- Returns
- int Bytes written (false on failure).
Definition at line 71 of file Ini.php.
◆ toString()
| static toString |
( |
|
$data, |
|
|
|
$sections = true, |
|
|
|
$mode = INI_SCANNER_TYPED |
|
) |
| |
|
static |
Write a configuration string.
- Parameters
-
| array | $data | Multidimensional array. |
| bool | $sections | Use sections (first evel of data). |
| int | $mode | INI_SCANNER_NORMAL, INI_SCANNER_RAW, or INI_SCANNER_TYPED. |
- Returns
- string
Definition at line 54 of file Ini.php.
The documentation for this class was generated from the following file:
- /var/www/fred.local/vendor/rsi/helpers/src/Rsi/Ini.php