Typo3XmlSerializerOptions

class \TYPO3\CMS\Core\Serializer\Typo3XmlSerializerOptions

Table of Contents

Constants

ALLOW_UNDEFINED_NAMESPACES  : mixed = 'allow_undefined_namespaces'
IGNORED_NODE_TYPES  : mixed = 'ignored_node_types'
INCLUDE_ROOT_NODE  : mixed = 'include_root_node'
LOAD_OPTIONS  : mixed = 'load_options'
NAMESPACE_PREFIX  : mixed = 'namespace_prefix'
RETURN_ROOT_NODE_NAME  : mixed = 'return_root_node_name'

Properties

$options  : array

Methods

__construct()  : mixed
allowUndefinedNamespaces()  : bool
getIgnoredNodeTypes()  : array
getLoadOptions()  : int
getNamespacePrefix()  : string
hasNamespacePrefix()  : bool
includeRootNode()  : bool
returnRootNodeName()  : bool

Constants

ALLOW_UNDEFINED_NAMESPACES

public mixed ALLOW_UNDEFINED_NAMESPACES = 'allow_undefined_namespaces'

IGNORED_NODE_TYPES

public mixed IGNORED_NODE_TYPES = 'ignored_node_types'

INCLUDE_ROOT_NODE

public mixed INCLUDE_ROOT_NODE = 'include_root_node'

LOAD_OPTIONS

public mixed LOAD_OPTIONS = 'load_options'

NAMESPACE_PREFIX

public mixed NAMESPACE_PREFIX = 'namespace_prefix'

RETURN_ROOT_NODE_NAME

public mixed RETURN_ROOT_NODE_NAME = 'return_root_node_name'

Properties

$options

protected array $options = [ // Ignore XML node types when converting to a PHP arra…
Show the full value[ // Ignore XML node types when converting to a PHP array. self::IGNORED_NODE_TYPES => [\XML_PI_NODE, \XML_COMMENT_NODE], // Use the XML root node or its children as the first level of the PHP array. self::INCLUDE_ROOT_NODE => false, // Apply these libxml2 options when loading the XML. self::LOAD_OPTIONS => \LIBXML_NONET | \LIBXML_NOBLANKS, // Remove this XML namespace from each XML node, for example "T3:". self::NAMESPACE_PREFIX => '', // Gracefully handle missing namespace declarations, for example <T3:T3FlexForms> without xmlns attribute. self::ALLOW_UNDEFINED_NAMESPACES => false, // Append the name of the XML root node to the PHP array key "_DOCUMENT_TAG". self::RETURN_ROOT_NODE_NAME => false, ]

Methods

__construct()

public __construct([array $options = [] ]) : mixed

Parameters

$options : array = []

allowUndefinedNamespaces()

public allowUndefinedNamespaces() : bool

Return values

bool

getIgnoredNodeTypes()

public getIgnoredNodeTypes() : array

Return values

array

getLoadOptions()

public getLoadOptions() : int

Return values

int

getNamespacePrefix()

public getNamespacePrefix() : string

Return values

string

hasNamespacePrefix()

public hasNamespacePrefix() : bool

Return values

bool

includeRootNode()

public includeRootNode() : bool

Return values

bool

returnRootNodeName()

public returnRootNodeName() : bool

Return values

bool
On this page