1: <?php
2:
3: /**
4: * TODO: Need to test this one first.
5: */
6: class RESTian_Application_Serialized_Php_Parser extends RESTian_Parser_Base {
7: /**
8: * Returns an object or array of stdClass objects from a string containing valid Serialized PHP
9: *
10: * @param string $body
11: * @return array|object|void A(n array of) stdClass object(s) with structure dictated by the passed Serialized PHP string.
12: */
13: function parse( $body ) {
14: return unserialize( $body );
15: }
16: }
17: