[XML_Serializer] element index

Package indexes

All elements
a g o r s u x _
_
top
Method _getDefaultTagname
get the name of the default tag.
a
top
Method apiVersion
XML_Unserializer::apiVersion() in Unserializer.php
return API version
Method apiVersion
return API version
g
top
Method getRootName
get the name of the root tag
Method getSerializedData
get the result of the serialization
Method getUnserializedData
get the result of the serialization
o
top
Variable $options
XML_Unserializer::$options in Unserializer.php
current options for the serialization
Variable $options
XML_Serializer::$options in Serializer.php
options for the serialization
r
top
Method resetOptions
reset all options to default options
Method resetOptions
reset all options to default options
s
top
Page Serializer.php
Serializer.php in Serializer.php
Method serialize
XML_Serializer::serialize() in Serializer.php
serialize data
Method setOption
XML_Unserializer::setOption() in Unserializer.php
set an option
Method setOption
XML_Serializer::setOption() in Serializer.php
set an option
Method setOptions
XML_Unserializer::setOptions() in Unserializer.php
sets several options at once
Method setOptions
sets several options at once
u
top
Page Unserializer.php
Unserializer.php in Unserializer.php
Method unserialize
unserialize data
x
top
Method XML_Serializer
constructor
Class XML_Serializer
XML_Serializer in Serializer.php
Creates XML documents from PHP data structures like arrays, objects or scalars.
Constant XML_SERIALIZER_ENTITIES_HTML
replace HTML entitites
Constant XML_SERIALIZER_ENTITIES_NONE
do not replace entitites
Constant XML_SERIALIZER_ENTITIES_XML
XML_SERIALIZER_ENTITIES_XML in Serializer.php
replace all XML entitites
Constant XML_SERIALIZER_ENTITIES_XML_REQUIRED
replace only required XML entitites
Constant XML_SERIALIZER_ERROR_NO_SERIALIZATION
error code for no serialization done
Constant XML_SERIALIZER_MODE_DEFAULT
XML_SERIALIZER_MODE_DEFAULT in Serializer.php
default mode
Constant XML_SERIALIZER_MODE_SIMPLEXML
SimpleXML mode
Constant XML_SERIALIZER_OPTION_ATTRIBUTES_KEY
option: all values in this key will be treated as attributes
Constant XML_SERIALIZER_OPTION_ATTRIBUTE_CLASS
option: attribute for class (only if typeHints => true)
Constant XML_SERIALIZER_OPTION_ATTRIBUTE_KEY
option: attribute where original key is stored
Constant XML_SERIALIZER_OPTION_ATTRIBUTE_TYPE
option: attribute for type (only if typeHints => true)
Constant XML_SERIALIZER_OPTION_CDATA_SECTIONS
option: whether to use cdata sections for character data
Constant XML_SERIALIZER_OPTION_CLASSNAME_AS_TAGNAME
option: use classname for objects in indexed arrays
Constant XML_SERIALIZER_OPTION_COMMENT_KEY
option: this value will be used in a comment, instead of creating a new tag
Constant XML_SERIALIZER_OPTION_CONTENT_KEY
option: this value will be used directly as content, instead of creating a new tag, may only be used in conjuction with attributesArray
Constant XML_SERIALIZER_OPTION_DEFAULT_TAG
option: default name for tags
Constant XML_SERIALIZER_OPTION_DOCTYPE
option: supply a string or an array with id and uri ({@see XML_Util::getDoctypeDeclaration()}
Constant XML_SERIALIZER_OPTION_DOCTYPE_ENABLED
option: add a doctype declaration
Constant XML_SERIALIZER_OPTION_ENCODE_FUNC
option: function that will be applied before serializing
Constant XML_SERIALIZER_OPTION_ENTITIES
option: type of entities to replace
Constant XML_SERIALIZER_OPTION_IGNORE_NULL
option: whether to ignore properties that are set to null
Constant XML_SERIALIZER_OPTION_INDENT
option: string used for indentation
Constant XML_SERIALIZER_OPTION_INDENT_ATTRIBUTES
option: indent the attributes, if set to '_auto', it will indent attributes so they all start at the same column
Constant XML_SERIALIZER_OPTION_LINEBREAKS
option: string used for linebreaks
Constant XML_SERIALIZER_OPTION_MODE
XML_SERIALIZER_OPTION_MODE in Serializer.php
option: use 'simplexml' to use parent name as tagname if transforming an indexed array
Constant XML_SERIALIZER_OPTION_NAMESPACE
option: function that will be applied before serializing
Constant XML_SERIALIZER_OPTION_PREPEND_ATTRIBUTES
option: prepend string for attributes
Constant XML_SERIALIZER_OPTION_RETURN_RESULT
option: whether to return the result of the serialization from serialize()
Constant XML_SERIALIZER_OPTION_ROOT_ATTRIBS
option: attributes of the root tag
Constant XML_SERIALIZER_OPTION_ROOT_NAME
option: name of the root tag
Constant XML_SERIALIZER_OPTION_SCALAR_AS_ATTRIBUTES
option: scalar values (strings, ints,..) will be serialized as attribute
Constant XML_SERIALIZER_OPTION_TAGMAP
option: tag names that will be changed
Constant XML_SERIALIZER_OPTION_TYPEHINTS
option: enable type hints
Constant XML_SERIALIZER_OPTION_XML_DECL_ENABLED
option: add an XML declaration
Constant XML_SERIALIZER_OPTION_XML_ENCODING
option: encoding of the document
Class XML_Unserializer
XML_Unserializer in Unserializer.php
XML_Unserializer
Method XML_Unserializer
constructor
Constant XML_UNSERIALIZER_ERROR_NO_UNSERIALIZATION
error code for no serialization done
Constant XML_UNSERIALIZER_OPTION_ATTRIBUTES_ARRAYKEY
option: Key of the array to store attributes (if any)
Constant XML_UNSERIALIZER_OPTION_ATTRIBUTES_PARSE
option: Whether to parse attributes
Constant XML_UNSERIALIZER_OPTION_ATTRIBUTES_PREPEND
option: string to prepend attribute name (if any)
Constant XML_UNSERIALIZER_OPTION_ATTRIBUTE_CLASS
option: Name of the attribute that stores the class name
Constant XML_UNSERIALIZER_OPTION_ATTRIBUTE_KEY
option: Name of the attribute that stores the original key
Constant XML_UNSERIALIZER_OPTION_ATTRIBUTE_TYPE
option: Name of the attribute that stores the type
Constant XML_UNSERIALIZER_OPTION_COMPLEXTYPE
option: Convert nested tags to array or object
Constant XML_UNSERIALIZER_OPTION_CONTENT_KEY
option: key to store the content, if XML_UNSERIALIZER_OPTION_ATTRIBUTES_PARSE is used
Constant XML_UNSERIALIZER_OPTION_DECODE_FUNC
option: Callback that will be applied to textual data
Constant XML_UNSERIALIZER_OPTION_DEFAULT_CLASS
option: Name of the default class
Constant XML_UNSERIALIZER_OPTION_ENCODING_SOURCE
option: Encoding of the XML document
Constant XML_UNSERIALIZER_OPTION_ENCODING_TARGET
option: Desired target encoding of the data
Constant XML_UNSERIALIZER_OPTION_FORCE_ENUM
option: list of tags that will always be enumerated
Constant XML_UNSERIALIZER_OPTION_GUESS_TYPES
option: whether to use type guessing for scalar values
Constant XML_UNSERIALIZER_OPTION_IGNORE_KEYS
option: list of tags, that will not be used as keys
Constant XML_UNSERIALIZER_OPTION_OVERRIDE_OPTIONS
option: whether to ovverride all options that have been set before
Constant XML_UNSERIALIZER_OPTION_RETURN_RESULT
option: whether to return the result of the unserialization from unserialize()
Constant XML_UNSERIALIZER_OPTION_TAG_AS_CLASSNAME
option: Whether to use the tag name as a class name
Constant XML_UNSERIALIZER_OPTION_TAG_MAP
option: map tag names
Constant XML_UNSERIALIZER_OPTION_WHITESPACE
option: set the whitespace behaviour
Constant XML_UNSERIALIZER_WHITESPACE_KEEP
Keep all whitespace
Constant XML_UNSERIALIZER_WHITESPACE_NORMALIZE
normalize whitespace
Constant XML_UNSERIALIZER_WHITESPACE_TRIM
remove whitespace from start and end of the data
a g o r s u x _