Ini
Implements FormatInterfaceINI format handler for Registry.
| since |
1.0.0 |
|---|---|
| package |
Joomla Framework |
Methods
getValueAsIni
Method to get a value in an INI format.
getValueAsIni( value) :
| since |
1.0.0 |
|---|
Arguments
- value
mixedThe value to convert to INI format.
Response
stringThe value in INI format.
objectToString
Converts an object into an INI formatted string
- Unfortunately, there is no way to have ini values nested further than two levels deep. Therefore we will only go through the first two levels of the object.
objectToString( object, mixed||string|int options = []) :
| since |
1.0.0 |
|---|
Arguments
- object
objectData source object.- options
array<string|int, mixed>Options used by the formatter.
Response
stringINI formatted string.
stringToObject
Parse an INI formatted string and convert it into an object.
stringToObject( data, mixed||string|int options = []) :
| since |
1.0.0 |
|---|
Arguments
- data
stringINI formatted string to convert.- options
array<string|int, mixed>An array of options used by the formatter, or a boolean setting to process sections.
Response
objectData object.
Properties
options
Default options array
static
| since |
1.3.0 |
|---|
Type(s)
array<string|int, mixed>
cache
A cache used by stringToObject.
static
| since |
1.0.0 |
|---|
Type(s)
array<string|int, mixed>