-
XML_Serializer
-
constructor
-
XML_Serializer
-
Creates XML documents from PHP data structures like arrays, objects or scalars.
-
XML_SERIALIZER_ENTITIES_HTML
-
replace HTML entitites
-
XML_SERIALIZER_ENTITIES_NONE
-
do not replace entitites
-
XML_SERIALIZER_ENTITIES_XML
-
replace all XML entitites
-
XML_SERIALIZER_ENTITIES_XML_REQUIRED
-
replace only required XML entitites
-
XML_SERIALIZER_ERROR_NO_SERIALIZATION
-
error code for no serialization done
-
XML_SERIALIZER_MODE_DEFAULT
-
default mode
-
XML_SERIALIZER_MODE_SIMPLEXML
-
SimpleXML mode
-
XML_SERIALIZER_OPTION_ATTRIBUTES_KEY
-
option: all values in this key will be treated as attributes
-
XML_SERIALIZER_OPTION_ATTRIBUTE_CLASS
-
option: attribute for class (only if typeHints => true)
-
XML_SERIALIZER_OPTION_ATTRIBUTE_KEY
-
option: attribute where original key is stored
-
XML_SERIALIZER_OPTION_ATTRIBUTE_TYPE
-
option: attribute for type (only if typeHints => true)
-
XML_SERIALIZER_OPTION_CDATA_SECTIONS
-
option: whether to use cdata sections for character data
-
XML_SERIALIZER_OPTION_CLASSNAME_AS_TAGNAME
-
option: use classname for objects in indexed arrays
-
XML_SERIALIZER_OPTION_COMMENT_KEY
-
option: this value will be used in a comment, instead of creating a new tag
-
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
-
XML_SERIALIZER_OPTION_DEFAULT_TAG
-
option: default name for tags
-
XML_SERIALIZER_OPTION_DOCTYPE
-
option: supply a string or an array with id and uri ({@see XML_Util::getDoctypeDeclaration()}
-
XML_SERIALIZER_OPTION_DOCTYPE_ENABLED
-
option: add a doctype declaration
-
XML_SERIALIZER_OPTION_ENCODE_FUNC
-
option: function that will be applied before serializing
-
XML_SERIALIZER_OPTION_ENTITIES
-
option: type of entities to replace
-
XML_SERIALIZER_OPTION_IGNORE_NULL
-
option: whether to ignore properties that are set to null
-
XML_SERIALIZER_OPTION_INDENT
-
option: string used for indentation
-
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
-
XML_SERIALIZER_OPTION_LINEBREAKS
-
option: string used for linebreaks
-
XML_SERIALIZER_OPTION_MODE
-
option: use 'simplexml' to use parent name as tagname if transforming an indexed array
-
XML_SERIALIZER_OPTION_NAMESPACE
-
option: function that will be applied before serializing
-
XML_SERIALIZER_OPTION_PREPEND_ATTRIBUTES
-
option: prepend string for attributes
-
XML_SERIALIZER_OPTION_RETURN_RESULT
-
option: whether to return the result of the serialization from serialize()
-
XML_SERIALIZER_OPTION_ROOT_ATTRIBS
-
option: attributes of the root tag
-
XML_SERIALIZER_OPTION_ROOT_NAME
-
option: name of the root tag
-
XML_SERIALIZER_OPTION_SCALAR_AS_ATTRIBUTES
-
option: scalar values (strings, ints,..) will be serialized as attribute
-
XML_SERIALIZER_OPTION_TAGMAP
-
option: tag names that will be changed
-
XML_SERIALIZER_OPTION_TYPEHINTS
-
option: enable type hints
-
XML_SERIALIZER_OPTION_XML_DECL_ENABLED
-
option: add an XML declaration
-
XML_SERIALIZER_OPTION_XML_ENCODING
-
option: encoding of the document
-
XML_Unserializer
-
XML_Unserializer
-
XML_Unserializer
-
constructor
-
XML_UNSERIALIZER_ERROR_NO_UNSERIALIZATION
-
error code for no serialization done
-
XML_UNSERIALIZER_OPTION_ATTRIBUTES_ARRAYKEY
-
option: Key of the array to store attributes (if any)
-
XML_UNSERIALIZER_OPTION_ATTRIBUTES_PARSE
-
option: Whether to parse attributes
-
XML_UNSERIALIZER_OPTION_ATTRIBUTES_PREPEND
-
option: string to prepend attribute name (if any)
-
XML_UNSERIALIZER_OPTION_ATTRIBUTE_CLASS
-
option: Name of the attribute that stores the class name
-
XML_UNSERIALIZER_OPTION_ATTRIBUTE_KEY
-
option: Name of the attribute that stores the original key
-
XML_UNSERIALIZER_OPTION_ATTRIBUTE_TYPE
-
option: Name of the attribute that stores the type
-
XML_UNSERIALIZER_OPTION_COMPLEXTYPE
-
option: Convert nested tags to array or object
-
XML_UNSERIALIZER_OPTION_CONTENT_KEY
-
option: key to store the content, if XML_UNSERIALIZER_OPTION_ATTRIBUTES_PARSE is used
-
XML_UNSERIALIZER_OPTION_DECODE_FUNC
-
option: Callback that will be applied to textual data
-
XML_UNSERIALIZER_OPTION_DEFAULT_CLASS
-
option: Name of the default class
-
XML_UNSERIALIZER_OPTION_ENCODING_SOURCE
-
option: Encoding of the XML document
-
XML_UNSERIALIZER_OPTION_ENCODING_TARGET
-
option: Desired target encoding of the data
-
XML_UNSERIALIZER_OPTION_FORCE_ENUM
-
option: list of tags that will always be enumerated
-
XML_UNSERIALIZER_OPTION_GUESS_TYPES
-
option: whether to use type guessing for scalar values
-
XML_UNSERIALIZER_OPTION_IGNORE_KEYS
-
option: list of tags, that will not be used as keys
-
XML_UNSERIALIZER_OPTION_OVERRIDE_OPTIONS
-
option: whether to ovverride all options that have been set before
-
XML_UNSERIALIZER_OPTION_RETURN_RESULT
-
option: whether to return the result of the unserialization from unserialize()
-
XML_UNSERIALIZER_OPTION_TAG_AS_CLASSNAME
-
option: Whether to use the tag name as a class name
-
XML_UNSERIALIZER_OPTION_TAG_MAP
-
option: map tag names
-
XML_UNSERIALIZER_OPTION_WHITESPACE
-
option: set the whitespace behaviour
-
XML_UNSERIALIZER_WHITESPACE_KEEP
-
Keep all whitespace
-
XML_UNSERIALIZER_WHITESPACE_NORMALIZE
-
normalize whitespace
-
XML_UNSERIALIZER_WHITESPACE_TRIM
-
remove whitespace from start and end of the data