Serializer.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Serializer
- Version
- $Id: Serializer.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Serializer
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


null|\Zend_Loader_PluginLoader $_adapterLoader = null
null
Details- Type
- null | \Zend_Loader_PluginLoader
Methods


_getDefaultAdapterLoader() : \Zend_Loader_PluginLoader
Returns a default adapter plugin loader
Type | Description |
---|---|
\Zend_Loader_PluginLoader |


factory(string | \Zend_Serializer_Adapter_AdapterInterface $adapterName, array $opts = array()) : \Zend_Serializer_Adapter_AdapterInterface
Create a serializer adapter instance.
Name | Type | Description |
---|---|---|
$adapterName | string | \Zend_Serializer_Adapter_AdapterInterface | Name of the adapter class |
$opts | array | |Zend_Config $opts Serializer options |
Type | Description |
---|---|
\Zend_Serializer_Adapter_AdapterInterface |


getAdapterLoader() : \Zend_Loader_PluginLoader
Get the adapter plugin loader.
Type | Description |
---|---|
\Zend_Loader_PluginLoader |


getDefaultAdapter() : \Zend_Serializer_Adapter_AdapterInterface
Get the default adapter.
Type | Description |
---|---|
\Zend_Serializer_Adapter_AdapterInterface |


resetAdapterLoader() : \Zend_Loader_PluginLoader
Resets the internal adapter plugin loader
Type | Description |
---|---|
\Zend_Loader_PluginLoader |


serialize(mixed $value, array $options = array()) : string
Generates a storable representation of a value using the default adapter.
Name | Type | Description |
---|---|---|
$value | mixed | |
$options | array |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Serializer_Exception |


setAdapterLoader(\Zend_Loader_PluginLoader $pluginLoader) : void
Change the adapter plugin load.
Name | Type | Description |
---|---|---|
$pluginLoader | \Zend_Loader_PluginLoader |


setDefaultAdapter(string | \Zend_Serializer_Adapter_AdapterInterface $adapter, array | \Zend_Config $options = array()) : void
Change the default adapter.
Name | Type | Description |
---|---|---|
$adapter | string | \Zend_Serializer_Adapter_AdapterInterface | |
$options | array | \Zend_Config |


unserialize(string $serialized, array $options = array()) : mixed
Creates a PHP value from a stored representation using the default adapter.
Name | Type | Description |
---|---|---|
$serialized | string | |
$options | array |
Type | Description |
---|---|
mixed |
Exception | Description |
---|---|
\Zend_Serializer_Exception |