class JRegistryFormatPHP extends JRegistryFormat


Located at : UKNOWVA_ROOT/libraries/joomla/registry/format/php.php

PHP class format handler for JRegistry

Methods

static object
getInstance(string $type)

Returns a reference to a Format object, only creating it if it doesn't already exist.

string
objectToString(object $object, array $params = array())

Converts an object into a php class string.

object
stringToObject(string $data, array $options = array())

Parse a PHP class formatted string and convert it into an object.

Details

in JRegistryFormat at line 32
static object getInstance(string $type)

Returns a reference to a Format object, only creating it if it doesn't already exist.

Parameters

string $type The format to load

Return Value

object Registry format handler

Exceptions

JException

at line 32
string objectToString(object $object, array $params = array())

Converts an object into a php class string.

  • NOTE: Only one depth level is supported.

Parameters

object $object Data Source Object.
array $params Parameters used by the formatter

Return Value

string Formatted string.

at line 68
object stringToObject(string $data, array $options = array())

Parse a PHP class formatted string and convert it into an object.

Parameters

string $data Formatted string
array $options An array of options for the formatter.

Return Value

object Data Object