PHP Class JBZoo\Data\JSON

Inheritance: extends Data
Afficher le fichier Open project: jbzoo/data Class Usage Examples

Méthodes protégées

Méthode Description
_decode ( string $string ) : mixed Utility Method to unserialize the given data
_encode ( $data ) : string Utility Method to unserialize the given data
_render ( array | object $data, integer $indent ) : string Do the real json encoding adding human readability. Supports automatic indenting with tabs

Method Details

_decode() protected méthode

Utility Method to unserialize the given data
protected _decode ( string $string ) : mixed
$string string
Résultat mixed

_encode() protected méthode

Utility Method to unserialize the given data
protected _encode ( $data ) : string
$data
Résultat string

_render() protected méthode

Do the real json encoding adding human readability. Supports automatic indenting with tabs
protected _render ( array | object $data, integer $indent ) : string
$data array | object The array or object to encode in json
$indent integer The indentation level. Adds $indent tabs to the string
Résultat string