Method |
Description |
|
eolWorkaround_addPlaceholders ( string $iniString ) : mixed |
PHP (Zend, not HHVM) has a bug that causes parse_ini_string() to fail when the line
ends with an escaped quote, like: |
|
eolWorkaround_removePlaceholders ( $deserializedArray ) : array |
|
|
escapeString ( $str ) : mixed |
Called when serializing data into an INI string. The only character that needs special handling is a double
quotation mark, see e.g. WP-284. All others are fine since using INI_SCANNER_RAW (WP-458). |
|
expandArrays ( $deserialized ) : array |
Transforms e.g. |
|
getReplacedEolString ( $str, $direction ) |
|
|
outputToString ( $output ) |
|
|
preserveNULLs ( $iniString ) |
|
|
preserveNumbers ( $iniString ) |
|
|
restorePhpSerializedData ( $deserialized ) : array |
Converts all PHP-serialized data in the INI (multiple lines, made for easy merging)
to the original PHP-serialized strings. |
|
restoreTypesOfValues ( $deserialized ) |
|
|
sanitizeSectionsAndKeys_addPlaceholders ( $string ) |
|
|
sanitizeSectionsAndKeys_removePlaceholders ( $deserialized ) |
|
|
serializeData ( $data ) |
|
|
serializeKeyValuePair ( string $key, string | integer | float $value ) : string |
Serializes key-value pair |
|
serializeSection ( string $sectionName, array $data ) : array |
Serializes section - works recursively for subsections |
|
unescapeString ( $str ) : mixed |
The opposite to escapeString(), called when INI strings are restored back to arrays. Again,
the only char that needs special handling is the double quotation mark. |
|