Typo3XmlSerializerOptions

Internal

still experimental

Table of Contents

Constants

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

Properties

$options  : array<string|int, mixed>

Methods

__construct()  : mixed
allowUndefinedNamespaces()  : bool
getIgnoredNodeTypes()  : array<string|int, mixed>
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<string|int, mixed> $options = [ // 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<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

allowUndefinedNamespaces()

public allowUndefinedNamespaces() : bool
Return values
bool

getIgnoredNodeTypes()

public getIgnoredNodeTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>

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

Search results