API Documentation

Zend/Serializer.php

Show: inherited
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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Serializer  
Version
$Id: Serializer.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Serializer

Package: Zend\Serializer

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprivatenull|\Zend_Loader_PluginLoader  $_adapterLoader= 'null'
static

Plugin loader to load adapter.

Default valuenullDetails
Type
null\Zend_Loader_PluginLoader
Propertyprotectedstring|\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
Type Description
\Zend_Loader_PluginLoader
methodpublicfactory( string|\Zend_Serializer_Adapter_AdapterInterface $adapterName, array $opts = array() ) : \Zend_Serializer_Adapter_AdapterInterface
static

Create a serializer adapter instance.

Parameters
Name Type Description
$adapterName string|\Zend_Serializer_Adapter_AdapterInterface

Name of the adapter class

$opts array

|Zend_Config $opts Serializer options

Returns
Type Description
\Zend_Serializer_Adapter_AdapterInterface
methodpublicgetAdapterLoader( ) : \Zend_Loader_PluginLoader
static

Get the adapter plugin loader.

Returns
Type Description
\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
Type Description
\Zend_Loader_PluginLoader
methodpublicserialize( mixed $value, array $options = array() ) : string
static

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

Parameters
Name Type Description
$value mixed
$options array
Returns
Type Description
string
Throws
Exception Description
\Zend_Serializer_Exception
methodpublicsetAdapterLoader( \Zend_Loader_PluginLoader $pluginLoader ) : void
static

Change the adapter plugin load.

Parameters
Name Type Description
$pluginLoader \Zend_Loader_PluginLoader
methodpublicsetDefaultAdapter( 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
methodpublicunserialize( string $serialized, array $options = array() ) : mixed
static

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

Parameters
Name Type Description
$serialized string
$options array
Returns
Type Description
mixed
Throws
Exception Description
\Zend_Serializer_Exception
Documentation was generated by DocBlox 0.15.1.