class JRegistryFormat


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

Abstract Format 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 $options = null)

Converts an object into a formatted string.

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

Converts a formatted string into an object.

Details

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 71
abstract string objectToString(object $object, array $options = null)

Converts an object into a formatted string.

Parameters

object $object Data Source Object.
array $options An array of options for the formatter.

Return Value

string Formatted string.

at line 83
abstract object stringToObject(string $data, array $options = null)

Converts a formatted string into an object.

Parameters

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

Return Value

object Data Object