Serializer.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Serializer
- Version
- $Id$
\Zend_Serializer
Package: Zend_Serializer
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
null|\Zend_Loader_PluginLoader $_adapterLoader = null
static
Plugin loader to load adapter.
Default value
null
Details- Type
- null | \Zend_Loader_PluginLoader
string|\Zend_Serializer_AdapterInterface $_defaultAdapter = 'PhpSerialize'
static
The default adapter.
Default value
'PhpSerialize'
Details- Type
- string | \Zend_Serializer_AdapterInterface
Methods
_getDefaultAdapterLoader() : \Zend_Loader_PluginLoader
static
Returns a default adapter plugin loader
Returns
Type | Description |
---|---|
\Zend_Loader_PluginLoader |
factory(string | \Zend_Serializer_Adapter_AdapterInterface $adapterName, $opts = array()) : \Zend_Serializer_Adapter_AdapterInterface
static
Create a serializer adapter instance.
Parameters
Returns
Name | Type | Description |
---|---|---|
$adapterName | string | \Zend_Serializer_Adapter_AdapterInterface | Name of the adapter class |
$opts |
Type | Description |
---|---|
\Zend_Serializer_Adapter_AdapterInterface |
getAdapterLoader() : \Zend_Loader_PluginLoader
static
Get the adapter plugin loader.
Returns
Type | Description |
---|---|
\Zend_Loader_PluginLoader |
getDefaultAdapter() : \Zend_Serializer_Adapter_AdapterInterface
static
Get the default adapter.
Returns
Type | Description |
---|---|
\Zend_Serializer_Adapter_AdapterInterface |
resetAdapterLoader() : \Zend_Loader_PluginLoader
static
Resets the internal adapter plugin loader
Returns
Type | Description |
---|---|
\Zend_Loader_PluginLoader |
serialize(mixed $value, array $options = array()) : string
static
Generates a storable representation of a value using the default adapter.
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$value | mixed | |
$options | array |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Serializer_Exception |
setAdapterLoader(\Zend_Loader_PluginLoader $pluginLoader) : void
static
Change the adapter plugin load.
Parameters
Name | Type | Description |
---|---|---|
$pluginLoader | \Zend_Loader_PluginLoader |
setDefaultAdapter(string | \Zend_Serializer_Adapter_AdapterInterface $adapter, array | \Zend_Config $options = array()) : void
static
Change the default adapter.
Parameters
Name | Type | Description |
---|---|---|
$adapter | string | \Zend_Serializer_Adapter_AdapterInterface | |
$options | array | \Zend_Config |
unserialize(string $serialized, array $options = array()) : mixed
static
Creates a PHP value from a stored representation using the default adapter.
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$serialized | string | |
$options | array |
Type | Description |
---|---|
mixed |
Exception | Description |
---|---|
\Zend_Serializer_Exception |