Class JRegistryFormatJSON

Description

JSON format handler for JRegistry.

  • since: 11.1

Located in /libraries/joomla/registry/format/json.php (line 19)

JRegistryFormat
   |
   --JRegistryFormatJSON
Method Summary
 string objectToString (object $object, [array $options = array()])
 object Data stringToObject (string $data, [array $options = array('processSections' => false)])
Variables

Inherited Variables

Inherited from JRegistryFormat

JRegistryFormat::$instances
Methods
objectToString (line 31)

Converts an object into a JSON formatted string.

  • return: JSON formatted string.
  • since: 11.1
  • access: public
string objectToString (object $object, [array $options = array()])
  • object $object: Data source object.
  • array $options: Options used by the formatter.

Redefinition of:
JRegistryFormat::objectToString()
Converts an object into a formatted string.
stringToObject (line 48)

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.

  • return: object.
  • since: 11.1
  • access: public
object Data stringToObject (string $data, [array $options = array('processSections' => false)])
  • string $data: JSON formatted string to convert.
  • array $options: Options used by the formatter.

Redefinition of:
JRegistryFormat::stringToObject()
Converts a formatted string into an object.

Inherited Methods

Inherited From JRegistryFormat

 JRegistryFormat::getInstance()
 JRegistryFormat::objectToString()
 JRegistryFormat::stringToObject()

Documentation generated on Tue, 19 Nov 2013 15:06:17 +0100 by phpDocumentor 1.4.3