Php

Implements FormatInterface

PHP class format handler for Registry

since

1.0.0

package

Joomla Framework

Methods

formatValue

Format a value for the string conversion

formatValue( value) : 
since

2.0.0

Arguments

value

mixedThe value to format

Response

mixedThe formatted value

getArrayString

Method to get an array as an exported string.

getArrayString(mixed||string|int a) : 
since

1.0.0

Arguments

a

array<string|int, mixed>The array to get as a string.

Response

string

objectToString

Converts an object into a php class string.

objectToString( object, mixed||string|int params = []) : 
  • NOTE: Only one depth level is supported.
since

1.0.0

2.0.0

Arguments

object

objectData Source Object

params

array<string|int, mixed>Parameters used by the formatter

Response

stringConfig class formatted string

stringToObject

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

stringToObject( data, mixed||string|int options = []) : 
since

1.0.0

Arguments

data

stringPHP Class formatted string to convert.

options

array<string|int, mixed>Options used by the formatter.

Response

objectData object.