XML_Serializer
[ class tree: XML_Serializer ] [ index: XML_Serializer ] [ all elements ]

Class: XML_Unserializer

Source Location: /XML_Serializer-0.17.0/Unserializer.php

Class Overview

PEAR
   |
   --XML_Unserializer

XML_Unserializer


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 242]
XML_Unserializer

class to unserialize XML documents that have been created with XML_Serializer. To unserialize an XML document you have to add type hints to the XML_Serializer options.

If no type hints are available, XML_Unserializer will guess how the tags should be treated, that means complex structures will be arrays and tags with only CData in them will be strings.



[ Top ]


Class Variables

$options = array()

[line 301]

current options for the serialization
  • Access: public

Type:   array


[ Top ]



Method Detail

XML_Unserializer (Constructor)   [line 357]

XML_Unserializer XML_Unserializer( [mixed $options = null])

constructor
  • Access: public

Parameters:

mixed   $options     array containing options for the unserialization

[ Top ]

apiVersion   [line 373]

string apiVersion( )

return API version
  • Return: API version
  • Static: This method can be called statically
  • Access: public

[ Top ]

getRootName   [line 500]

string getRootName( )

get the name of the root tag
  • Access: public

[ Top ]

getUnserializedData   [line 486]

string getUnserializedData( )

get the result of the serialization
  • Access: public

[ Top ]

resetOptions   [line 384]

void resetOptions( )

reset all options to default options

[ Top ]

setOption   [line 397]

void setOption( mixed $name, mixed $value)

set an option

You can use this method if you do not want to set all options in the constructor


[ Top ]

setOptions   [line 410]

void setOptions( mixed $options)

sets several options at once

You can use this method if you do not want to set all options in the constructor


[ Top ]

unserialize   [line 424]

boolean unserialize( mixed $data, [boolean $isFile = false], [array $options = null])

unserialize data
  • Access: public

Parameters:

mixed   $data     data to unserialize (string, filename or resource)
boolean   $isFile     data should be treated as a file
array   $options     options that will override the global options for this call

[ Top ]


Documentation generated on Sat, 24 Sep 2005 11:40:11 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.