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

File: Unserializer.php

Source Location: /XML_Serializer-0.17.0/Unserializer.php

Classes:

XML_Unserializer
XML_Unserializer

Page Details:

XML_Unserializer

Parses any XML document into PHP data structures.

PHP versions 4 and 5

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

Includes:

require_once('PEAR.php') [line 30]
uses PEAR error managemt
require_once('XML/Parser.php') [line 35]
uses XML_Parser to unserialize document

XML_UNSERIALIZER_ERROR_NO_UNSERIALIZATION [line 208]

XML_UNSERIALIZER_ERROR_NO_UNSERIALIZATION = 151
error code for no serialization done

[ Top ]



XML_UNSERIALIZER_OPTION_ATTRIBUTES_ARRAYKEY [line 101]

XML_UNSERIALIZER_OPTION_ATTRIBUTES_ARRAYKEY = 'attributesArray'
option: Key of the array to store attributes (if any)

Possible values:

  • any string
  • false (disabled)


[ Top ]



XML_UNSERIALIZER_OPTION_ATTRIBUTES_PARSE [line 92]

XML_UNSERIALIZER_OPTION_ATTRIBUTES_PARSE = 'parseAttributes'
option: Whether to parse attributes

Possible values:

  • true or false


[ Top ]



XML_UNSERIALIZER_OPTION_ATTRIBUTES_PREPEND [line 110]

XML_UNSERIALIZER_OPTION_ATTRIBUTES_PREPEND = 'prependAttributes'
option: string to prepend attribute name (if any)

Possible values:

  • any string
  • false (disabled)


[ Top ]



XML_UNSERIALIZER_OPTION_ATTRIBUTE_CLASS [line 68]

XML_UNSERIALIZER_OPTION_ATTRIBUTE_CLASS = 'classAttribute'
option: Name of the attribute that stores the class name

Possible values:

  • any string


[ Top ]



XML_UNSERIALIZER_OPTION_ATTRIBUTE_KEY [line 52]

XML_UNSERIALIZER_OPTION_ATTRIBUTE_KEY = 'keyAttribute'
option: Name of the attribute that stores the original key

Possible values:

  • any string


[ Top ]



XML_UNSERIALIZER_OPTION_ATTRIBUTE_TYPE [line 60]

XML_UNSERIALIZER_OPTION_ATTRIBUTE_TYPE = 'typeAttribute'
option: Name of the attribute that stores the type

Possible values:

  • any string


[ Top ]



XML_UNSERIALIZER_OPTION_COMPLEXTYPE [line 44]

XML_UNSERIALIZER_OPTION_COMPLEXTYPE = 'complexType'
option: Convert nested tags to array or object

Possible values:

  • array
  • object


[ Top ]



XML_UNSERIALIZER_OPTION_CONTENT_KEY [line 118]

XML_UNSERIALIZER_OPTION_CONTENT_KEY = 'contentName'
option: key to store the content, if XML_UNSERIALIZER_OPTION_ATTRIBUTES_PARSE is used

Possible values:

  • any string


[ Top ]



XML_UNSERIALIZER_OPTION_DECODE_FUNC [line 160]

XML_UNSERIALIZER_OPTION_DECODE_FUNC = 'decodeFunction'
option: Callback that will be applied to textual data

Possible values:

  • any valid PHP callback


[ Top ]



XML_UNSERIALIZER_OPTION_DEFAULT_CLASS [line 84]

XML_UNSERIALIZER_OPTION_DEFAULT_CLASS = 'defaultClass'
option: Name of the default class

Possible values:

  • any string


[ Top ]



XML_UNSERIALIZER_OPTION_ENCODING_SOURCE [line 143]

XML_UNSERIALIZER_OPTION_ENCODING_SOURCE = 'encoding'
option: Encoding of the XML document

Possible values:

  • UTF-8
  • ISO-8859-1


[ Top ]



XML_UNSERIALIZER_OPTION_ENCODING_TARGET [line 152]

XML_UNSERIALIZER_OPTION_ENCODING_TARGET = 'targetEncoding'
option: Desired target encoding of the data

Possible values:

  • UTF-8
  • ISO-8859-1


[ Top ]



XML_UNSERIALIZER_OPTION_FORCE_ENUM [line 134]

XML_UNSERIALIZER_OPTION_FORCE_ENUM = 'forceEnum'
option: list of tags that will always be enumerated

Possible values:

  • indexed array


[ Top ]



XML_UNSERIALIZER_OPTION_OVERRIDE_OPTIONS [line 203]

XML_UNSERIALIZER_OPTION_OVERRIDE_OPTIONS = 'overrideOptions'
option: whether to ovverride all options that have been set before

Possible values:

  • true
  • false (default)


[ Top ]



XML_UNSERIALIZER_OPTION_RETURN_RESULT [line 169]

XML_UNSERIALIZER_OPTION_RETURN_RESULT = 'returnResult'
option: whether to return the result of the unserialization from unserialize()

Possible values:

  • true
  • false (default)


[ Top ]



XML_UNSERIALIZER_OPTION_TAG_AS_CLASSNAME [line 76]

XML_UNSERIALIZER_OPTION_TAG_AS_CLASSNAME = 'tagAsClass'
option: Whether to use the tag name as a class name

Possible values:

  • true or false


[ Top ]



XML_UNSERIALIZER_OPTION_TAG_MAP [line 126]

XML_UNSERIALIZER_OPTION_TAG_MAP = 'tagMap'
option: map tag names

Possible values:

  • associative array


[ Top ]



XML_UNSERIALIZER_OPTION_WHITESPACE [line 179]

XML_UNSERIALIZER_OPTION_WHITESPACE = 'whitespace'
option: set the whitespace behaviour

Possible values:

  • XML_UNSERIALIZER_WHITESPACE_KEEP
  • XML_UNSERIALIZER_WHITESPACE_TRIM
  • XML_UNSERIALIZER_WHITESPACE_NORMALIZE


[ Top ]



XML_UNSERIALIZER_WHITESPACE_KEEP [line 184]

XML_UNSERIALIZER_WHITESPACE_KEEP = 'keep'
Keep all whitespace

[ Top ]



XML_UNSERIALIZER_WHITESPACE_NORMALIZE [line 194]

XML_UNSERIALIZER_WHITESPACE_NORMALIZE = 'normalize'
normalize whitespace

[ Top ]



XML_UNSERIALIZER_WHITESPACE_TRIM [line 189]

XML_UNSERIALIZER_WHITESPACE_TRIM = 'trim'
remove whitespace from start and end of the data

[ Top ]



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