Class Horde_Serialize

Description

The Serialize:: class provides various methods of encapsulating data.

$Horde: framework/Serialize/Serialize.php,v 1.25.10.16 2009/01/06 15:23:34 jan Exp $

Copyright 2001-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /Serialize/Serialize.php (line 42)


	
			
Method Summary
 static string serialize (mixed $data, [mixed $mode = array(SERIALIZE_BASIC)], [mixed $params = null])
 boolean hasCapability (integer $mode)
 string unserialize (mixed $data, [mixed $mode = SERIALIZE_BASIC], [mixed $params = null])
Methods
static serialize (line 62)

Serialize a value.

See the list of constants at the top of the file for the serializing techniques that can be used.

  • return: The serialized data. Returns PEAR_Error on error.
static string serialize (mixed $data, [mixed $mode = array(SERIALIZE_BASIC)], [mixed $params = null])
  • mixed $data: The data to be serialized.
  • mixed $mode: The mode of serialization. Can be either a single mode or array of modes. If array, will be serialized in the order provided.
  • mixed $params: Any additional parameters the serialization method requires.
hasCapability (line 127)

Check whether or not a serialization method is supported.

  • return: True if supported, false if not.
boolean hasCapability (integer $mode)
  • integer $mode: The serialization method.
unserialize (line 99)

Unserialize a value.

See the list of constants at the top of the file for the serializing techniques that can be used.

  • return: The unserialized data. Returns PEAR_Error on error.
string unserialize (mixed $data, [mixed $mode = SERIALIZE_BASIC], [mixed $params = null])
  • mixed $data: The data to be unserialized.
  • mixed $mode: The mode of unserialization. Can be either a single mode or array of modes. If array, will be unserialized in the order provided.
  • mixed $params: Any additional parameters the unserialization method requires.

Documentation generated on Sun, 30 Jan 2011 05:21:10 +0000 by phpDocumentor 1.4.3