category Zend
package Zend_Serializer
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Create a serializer adapter instance.

factory(string|\Zend_Serializer_Adapter_AdapterInterface $adapterName, $opts = array()) : \Zend_Serializer_Adapter_AdapterInterface
Static

Parameters

$adapterName

string\Zend_Serializer_Adapter_AdapterInterface

Name of the adapter class

$opts

Returns

\Zend_Serializer_Adapter_AdapterInterface

Get the adapter plugin loader.

getAdapterLoader() : \Zend_Loader_PluginLoader
Static

Returns

\Zend_Loader_PluginLoader

Get the default adapter.

getDefaultAdapter() : \Zend_Serializer_Adapter_AdapterInterface
Static

Returns

\Zend_Serializer_Adapter_AdapterInterface

Resets the internal adapter plugin loader

resetAdapterLoader() : \Zend_Loader_PluginLoader
Static

Returns

\Zend_Loader_PluginLoader

Generates a storable representation of a value using the default adapter.

serialize(mixed $value, array $options = array()) : string
Static

Parameters

$value

mixed

$options

array

Exceptions

\Zend_Serializer_Exception

Returns

string

Change the adapter plugin load.

setAdapterLoader(\Zend_Loader_PluginLoader $pluginLoader) : void
Static

Parameters

$pluginLoader

\Zend_Loader_PluginLoader

Change the default adapter.

setDefaultAdapter(string|\Zend_Serializer_Adapter_AdapterInterface $adapter, array|\Zend_Config $options = array()
Static

Parameters

$adapter

string\Zend_Serializer_Adapter_AdapterInterface

$options

array\Zend_Config

Creates a PHP value from a stored representation using the default adapter.

unserialize(string $serialized, array $options = array()) : mixed
Static

Parameters

$serialized

string

$options

array

Exceptions

\Zend_Serializer_Exception

Returns

mixed

Returns a default adapter plugin loader

_getDefaultAdapterLoader() : \Zend_Loader_PluginLoader
Static

Returns

\Zend_Loader_PluginLoader

 Properties

 

The default adapter.

$_defaultAdapter : string | \Zend_Serializer_AdapterInterface

Default

'PhpSerialize'
Static
 

Plugin loader to load adapter.

$_adapterLoader : null | \Zend_Loader_PluginLoader

Default

null
Static