Method |
Description |
|
convertArrayToSerializedString ( $relatedLines ) : string |
Converts array items saved in INI to PHP-like serialized string. |
|
convertObjectToSerializedString ( $type, $relatedKeys ) : string |
Converts object saved in INI to PHP-like serialized string. |
|
convertValueToSerializedString ( mixed $value, array $relatedLines = [] ) : string |
Converts single value (string, number, array, object, . |
|
findRelatedKeys ( $maybeRelatedKeys, $commonKey ) : array |
Finds array items with prefix $commonKey and cuts the prefix off. |
|
getSubItems ( $relatedLines, callable | null $subkeyTransformFn = null ) : array |
Takes lines of INI representing array items or class fields and returns them as PHP-like serialized string. |
|
parseSerializedString ( ) : array |
Transforms PHP primitives, arrays, objects etc. to INI. Complex structures like arrays and objects
can take multiple lines (every scalar value is on new line). |
|
primitiveToEscapedString ( $value ) |
|
|