[ Index ]

PHP Cross Reference of JPSpan 0.4 (beta)

title

Body

[close]

/JPSpan/Unserializer/ -> PHP.php (summary)

(no description)

File Size: 115 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JPSpan_Unserializer_PHP:: (3 methods):
  unserialize()
  validateClasses()
  getClasses()

Defines 3 functions

  JPSpan_Unserializer_PHP_Callback()

Class: JPSpan_Unserializer_PHP  - X-Ref

Unserializes PHP serialized strings

unserialize($data)   X-Ref
Unserialize a string into PHP data types. Changes the unserialize callback
function temporarily to JPSpan_Unserializer_PHP_Callback

access: public
param: string data serialized with PHP's serialization protocol
return: mixed PHP data

validateClasses($data)   X-Ref
Validates unserialized data, checking the class names of serialized objects,
to prevent unexpected objects from being instantiated by PHP's unserialize()

access: private
param: mixed data to validate
return: boolean TRUE if valid

getClasses($string)   X-Ref
Parses the serialized string, extracting class names

access: private
param: string serialized string to parse
return: array list of classes found

Functions
Functions that are not part of a class:

JPSpan_Unserializer_PHP_Callback($className, $getFailed = FALSE)   X-Ref
Unserialize call back function - checks that classes exist in the JPSpan map,
and includes them where needed. Throws an E_USER_ERROR if not found and dies

access: private
param: string classname (passed by PHP)
param: boolean set to TRUE to get back the name of the last failed class
return: mixed void unless getFailed param is true



Generated: Fri Nov 26 11:42:46 2004 Cross-referenced by PHPXref 0.6