Zend Framework
1.12
|
Public Member Functions | |
serialize ($value, array $opts=array()) | |
Serialize PHP value to JSON. | |
unserialize ($json, array $opts=array()) | |
Deserialize JSON to PHP value. | |
![]() | |
__construct ($opts=array()) | |
Constructor. | |
setOptions ($opts) | |
Set serializer options. | |
setOption ($name, $value) | |
Set a serializer option. | |
getOptions () | |
Get serializer options. | |
getOption ($name) | |
Get a serializer option. | |
Protected Attributes | |
$_options | |
![]() | |
$_options = array() | |
serialize | ( | $value, | |
array | $opts = array() |
||
) |
Serialize PHP value to JSON.
mixed | $value | |
array | $opts |
Zend_Serializer_Exception | on JSON encoding exception |
Implements Zend_Serializer_Adapter_AdapterInterface.
unserialize | ( | $json, | |
array | $opts = array() |
||
) |
Deserialize JSON to PHP value.
string | $json | |
array | $opts |
Implements Zend_Serializer_Adapter_AdapterInterface.
|
protected |