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

File: Unserializer.php

Source Location: /XML_Serializer-0.18.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('XML/Parser.php') [line 35]
uses XML_Parser to unserialize document
require_once('PEAR.php') [line 30]
uses PEAR error managemt

XML_UNSERIALIZER_ERROR_NO_UNSERIALIZATION [line 219]

XML_UNSERIALIZER_ERROR_NO_UNSERIALIZATION = 151
error code for no serialization done

[ Top ]



XML_UNSERIALIZER_OPTION_ATTRIBUTES_ARRAYKEY [line 102]

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 93]

XML_UNSERIALIZER_OPTION_ATTRIBUTES_PARSE = 'parseAttributes'
option: Whether to parse attributes

Possible values:

  • true or false


[ Top ]



XML_UNSERIALIZER_OPTION_ATTRIBUTES_PREPEND [line 111]

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 69]

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 53]

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 61]

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 45]

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

Possible values:

  • array
  • object
  • associative array to define this option per tag name


[ Top ]



XML_UNSERIALIZER_OPTION_CONTENT_KEY [line 119]

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 161]

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 85]

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

Possible values:

  • any string


[ Top ]



XML_UNSERIALIZER_OPTION_ENCODING_SOURCE [line 144]

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 153]

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 135]

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

Possible values:

  • indexed array


[ Top ]



XML_UNSERIALIZER_OPTION_GUESS_TYPES [line 214]

XML_UNSERIALIZER_OPTION_GUESS_TYPES = 'guessTypes'
option: whether to use type guessing for scalar values

[ Top ]



XML_UNSERIALIZER_OPTION_IGNORE_KEYS [line 209]

XML_UNSERIALIZER_OPTION_IGNORE_KEYS = 'ignoreKeys'
option: list of tags, that will not be used as keys

[ Top ]



XML_UNSERIALIZER_OPTION_OVERRIDE_OPTIONS [line 204]

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 170]

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 77]

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 127]

XML_UNSERIALIZER_OPTION_TAG_MAP = 'tagMap'
option: map tag names

Possible values:

  • associative array


[ Top ]



XML_UNSERIALIZER_OPTION_WHITESPACE [line 180]

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 185]

XML_UNSERIALIZER_WHITESPACE_KEEP = 'keep'
Keep all whitespace

[ Top ]



XML_UNSERIALIZER_WHITESPACE_NORMALIZE [line 195]

XML_UNSERIALIZER_WHITESPACE_NORMALIZE = 'normalize'
normalize whitespace

[ Top ]



XML_UNSERIALIZER_WHITESPACE_TRIM [line 190]

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

[ Top ]



Documentation generated on Sun, 02 Oct 2005 14:00:14 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.