Zend Framework  1.12
Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
Zend_Serializer Class Reference

Static Public Member Functions

static factory ($adapterName, $opts=array())
 Create a serializer adapter instance.
 
static getAdapterLoader ()
 Get the adapter plugin loader.
 
static setAdapterLoader (Zend_Loader_PluginLoader $pluginLoader)
 Change the adapter plugin load.
 
static resetAdapterLoader ()
 Resets the internal adapter plugin loader.
 
static setDefaultAdapter ($adapter, $options=array())
 Change the default adapter.
 
static getDefaultAdapter ()
 Get the default adapter.
 
static serialize ($value, array $options=array())
 Generates a storable representation of a value using the default adapter.
 
static unserialize ($serialized, array $options=array())
 Creates a PHP value from a stored representation using the default adapter.
 

Static Protected Member Functions

static _getDefaultAdapterLoader ()
 Returns a default adapter plugin loader.
 

Static Protected Attributes

static $_defaultAdapter = 'PhpSerialize'
 

Member Function Documentation

static _getDefaultAdapterLoader ( )
staticprotected

Returns a default adapter plugin loader.

Returns
Zend_Loader_PluginLoader
static factory (   $adapterName,
  $opts = array() 
)
static

Create a serializer adapter instance.

Parameters
string | Zend_Serializer_Adapter_AdapterInterface$adapterNameName of the adapter class
array  | Zend_Config$optsSerializer options
Returns
Zend_Serializer_Adapter_AdapterInterface
static getAdapterLoader ( )
static

Get the adapter plugin loader.

Returns
Zend_Loader_PluginLoader
static getDefaultAdapter ( )
static

Get the default adapter.

Returns
Zend_Serializer_Adapter_AdapterInterface
static resetAdapterLoader ( )
static

Resets the internal adapter plugin loader.

Returns
Zend_Loader_PluginLoader
static serialize (   $value,
array  $options = array() 
)
static

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

Parameters
mixed$value
array$options
Returns
string
Exceptions
Zend_Serializer_Exception
static setAdapterLoader ( Zend_Loader_PluginLoader  $pluginLoader)
static

Change the adapter plugin load.

Parameters
Zend_Loader_PluginLoader$pluginLoader
Returns
void
static setDefaultAdapter (   $adapter,
  $options = array() 
)
static

Change the default adapter.

Parameters
string | Zend_Serializer_Adapter_AdapterInterface$adapter
array | Zend_Config$options
static unserialize (   $serialized,
array  $options = array() 
)
static

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

Parameters
string$serialized
array$options
Returns
mixed
Exceptions
Zend_Serializer_Exception

Member Data Documentation

$_defaultAdapter = 'PhpSerialize'
staticprotected