Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
objectToString ($object, array $options=[]) | |
stringToObject ($data, array $options=['processSections'=> false]) | |
Fonctions membres publiques hérités de FormatInterface | |
stringToObject ($data, array $options=[]) | |
JSON format handler for Registry.
objectToString | ( | $object, | |
array | $options = [] |
||
) |
Converts an object into a JSON formatted string.
object | $object | Data source object. |
array | $options | Options used by the formatter. |
Implémente FormatInterface.
Références $options.
stringToObject | ( | $data, | |
array | $options = ['processSections' = , |
||
false] | |||
) |
Parse a JSON formatted string and convert it into an object.
If the string is not in JSON format, this method will attempt to parse it as INI format.
string | $data | JSON formatted string to convert. |
array | $options | Options used by the formatter. |
Références $data, $options, Factory\getFormat(), et null.