Zend Framework  3.0
Static Public Member Functions | Static Protected Attributes | List of all members
Serializer Class Reference

Static Public Member Functions

static factory ($adapterName, $adapterOptions=null)
 Create a serializer adapter instance.
 
static setAdapterPluginManager (AdapterPluginManager $adapters)
 Change the adapter plugin manager.
 
static getAdapterPluginManager ()
 Get the adapter plugin manager.
 
static resetAdapterPluginManager ()
 Resets the internal adapter plugin manager.
 
static setDefaultAdapter ($adapter, $adapterOptions=null)
 Change the default adapter.
 
static getDefaultAdapter ()
 Get the default adapter.
 
static serialize ($value, $adapter=null, $adapterOptions=null)
 Generates a storable representation of a value using the default adapter.
 
static unserialize ($serialized, $adapter=null, $adapterOptions=null)
 Creates a PHP value from a stored representation using the default adapter.
 

Static Protected Attributes

static $adapters
 
static $defaultAdapter = 'PhpSerialize'
 

Member Function Documentation

static factory (   $adapterName,
  $adapterOptions = null 
)
static

Create a serializer adapter instance.

Parameters
string | Adapter$adapterNameName of the adapter class
array  | \Traversable | null$adapterOptionsSerializer options
Returns
Adapter
static getAdapterPluginManager ( )
static

Get the adapter plugin manager.

Returns
AdapterPluginManager
static getDefaultAdapter ( )
static

Get the default adapter.

Returns
Adapter
static resetAdapterPluginManager ( )
static

Resets the internal adapter plugin manager.

Returns
AdapterPluginManager
static serialize (   $value,
  $adapter = null,
  $adapterOptions = null 
)
static

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

Optionally different adapter could be provided as second argument

Parameters
mixed$value
string | Adapter$adapter
array | \Traversable | null$adapterOptionsAdapter constructor options only used to create adapter instance
Returns
string
static setAdapterPluginManager ( AdapterPluginManager  $adapters)
static

Change the adapter plugin manager.

Parameters
AdapterPluginManager$adapters
Returns
void
static setDefaultAdapter (   $adapter,
  $adapterOptions = null 
)
static

Change the default adapter.

Parameters
string | Adapter$adapter
array | \Traversable | null$adapterOptions
static unserialize (   $serialized,
  $adapter = null,
  $adapterOptions = null 
)
static

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

Optionally different adapter could be provided as second argument

Parameters
string$serialized
string | Adapter$adapter
array | \Traversable | null$adapterOptionsAdapter constructor options only used to create adapter instance
Returns
mixed

Member Data Documentation

$adapters
staticprotected
$defaultAdapter = 'PhpSerialize'
staticprotected