Serializer.php

Show: PublicProtectedPrivateinherited
Table of Contents
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

>VPropertyprivatenull|\Zend_Loader_PluginLoader $_adapterLoader = null
static
Plugin loader to load adapter.
Default valuenullDetails
Type
null | \Zend_Loader_PluginLoader
>VPropertyprotectedstring|\Zend_Serializer_AdapterInterface $_defaultAdapter = 'PhpSerialize'
static
The default adapter.
Default value'PhpSerialize'Details
Type
string | \Zend_Serializer_AdapterInterface

Methods

methodprotected_getDefaultAdapterLoader() : \Zend_Loader_PluginLoader
static

Returns a default adapter plugin loader

Returns
TypeDescription
\Zend_Loader_PluginLoader
methodpublicfactory(string | \Zend_Serializer_Adapter_AdapterInterface $adapterName,  $opts = array()) : \Zend_Serializer_Adapter_AdapterInterface
static

Create a serializer adapter instance.

Parameters
NameTypeDescription
$adapterNamestring | \Zend_Serializer_Adapter_AdapterInterface

Name of the adapter class

$opts
Returns
TypeDescription
\Zend_Serializer_Adapter_AdapterInterface
methodpublicgetAdapterLoader() : \Zend_Loader_PluginLoader
static

Get the adapter plugin loader.

Returns
TypeDescription
\Zend_Loader_PluginLoader
methodpublicgetDefaultAdapter() : \Zend_Serializer_Adapter_AdapterInterface
static

Get the default adapter.

methodpublicresetAdapterLoader() : \Zend_Loader_PluginLoader
static

Resets the internal adapter plugin loader

Returns
TypeDescription
\Zend_Loader_PluginLoader
methodpublicserialize(mixed $value, array $options = array()) : string
static

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

Parameters
NameTypeDescription
$valuemixed
$optionsarray
Returns
TypeDescription
string
Throws
ExceptionDescription
\Zend_Serializer_Exception
methodpublicsetAdapterLoader(\Zend_Loader_PluginLoader $pluginLoader) : void
static

Change the adapter plugin load.

Parameters
NameTypeDescription
$pluginLoader\Zend_Loader_PluginLoader
methodpublicsetDefaultAdapter(string | \Zend_Serializer_Adapter_AdapterInterface $adapter, array | \Zend_Config $options = array()) : void
static

Change the default adapter.

Parameters
NameTypeDescription
$adapterstring | \Zend_Serializer_Adapter_AdapterInterface
$optionsarray | \Zend_Config
methodpublicunserialize(string $serialized, array $options = array()) : mixed
static

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

Parameters
NameTypeDescription
$serializedstring
$optionsarray
Returns
TypeDescription
mixed
Throws
ExceptionDescription
\Zend_Serializer_Exception
Documentation was generated by phpDocumentor 2.2.0 .