Typo3XmlParserOptions

Internal

still experimental

Table of Contents

Constants

FORMAT  = 'format'
FORMAT_INLINE  = -1
FORMAT_PRETTY_WITH_TAB  = 0
NAMESPACE_PREFIX  = 'namespace_prefix'
ROOT_NODE_NAME  = 'root_node_name'

Properties

$options  : array<string|int, mixed>

Methods

__construct()  : mixed
getIndentationStep()  : string
getNamespacePrefix()  : string
getNewlineChar()  : string
getRootNodeName()  : string

Constants

FORMAT_INLINE

public mixed FORMAT_INLINE = -1

FORMAT_PRETTY_WITH_TAB

public mixed FORMAT_PRETTY_WITH_TAB = 0

NAMESPACE_PREFIX

public mixed NAMESPACE_PREFIX = 'namespace_prefix'

ROOT_NODE_NAME

public mixed ROOT_NODE_NAME = 'root_node_name'

Properties

$options

protected array<string|int, mixed> $options = [ // Format XML with // - "-1" is inline XML // - "0" is pretty XML with tabs // - "1...x" is pretty XML with x spaces. self::FORMAT => self::FORMAT_PRETTY_WITH_TAB, // This XML namespace is prepended to each XML node, for example "T3:". self::NAMESPACE_PREFIX => '', // Wrap the XML with a root node of that name or set it to '' to skip wrapping. self::ROOT_NODE_NAME => 'phparray', ]

Methods

__construct()

public __construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

getIndentationStep()

public getIndentationStep() : string
Return values
string

getNamespacePrefix()

public getNamespacePrefix() : string
Return values
string

getNewlineChar()

public getNewlineChar() : string
Return values
string

getRootNodeName()

public getRootNodeName() : string
Return values
string

        
On this page

Search results