Php
Extends \Joomla\Registry\AbstractRegistryFormatPHP class format handler for Registry
since |
1.0 |
---|
Methods
getArrayString
Method to get an array as an exported string.
getArrayString(array $a) : string
since |
1.0 |
---|
Arguments
- $a
array
The array to get as a string.
Response
string
getInstance
Returns a reference to a Format object, only creating it if it doesn't already exist.
getInstance(string $type, array $options = array()) : \Joomla\Registry\AbstractRegistryFormat
deprecated |
2.0 Use Factory::getFormat() instead |
---|---|
since |
1.0 |
throws |
|
Arguments
- $type
string
The format to load- $options
array
Additional options to configure the object
Response
\Joomla\Registry\AbstractRegistryFormat
Registry format handler
objectToString
Converts an object into a php class string.
objectToString(object $object, array $params = array()) : string
- NOTE: Only one depth level is supported.
since |
1.0 |
---|
Arguments
- $object
object
Data Source Object- $params
array
Parameters used by the formatter
Response
string
Config class formatted string
stringToObject
Parse a PHP class formatted string and convert it into an object.
stringToObject(string $data, array $options = array()) : object
since |
1.0 |
---|
Arguments
- $data
string
PHP Class formatted string to convert.- $options
array
Options used by the formatter.
Response
object
Data object.
Properties
instances
Format instances container.
since |
1.0 |
---|---|
deprecated |
2.0 Object caching will no longer be supported |
Type(s)
array<mixed,\Joomla\Registry\AbstractRegistryFormat>