PHP Class JBZoo\Data\PHPArray

Inheritance: extends Data
Datei anzeigen Open project: jbzoo/data

Public Methods

Method Description
__construct ( array | string $data = [] ) Class constructor

Protected Methods

Method Description
_decode ( string $string ) : mixed Utility Method to unserialize the given data
_encode ( mixed $data ) : string Utility Method to serialize the given data
_getIndent ( $depth ) : string
_quoteWrap ( $var ) : string
_render ( array $array, integer $depth ) : string

Method Details

__construct() public method

Class constructor
public __construct ( array | string $data = [] )
$data array | string The data array

_decode() protected method

Utility Method to unserialize the given data
protected _decode ( string $string ) : mixed
$string string
return mixed

_encode() protected method

Utility Method to serialize the given data
protected _encode ( mixed $data ) : string
$data mixed The data to serialize
return string The serialized data

_getIndent() protected method

protected _getIndent ( $depth ) : string
$depth
return string

_quoteWrap() protected method

protected _quoteWrap ( $var ) : string
$var
return string

_render() protected method

protected _render ( array $array, integer $depth ) : string
$array array
$depth integer
return string