XmlConverter
in package
Table of Contents
Properties
- $contents : array<string, mixed>
- $skipContentOnly : bool
- $xml : string
Methods
- getContent() : array<string, mixed>
- getContents() : array<string, mixed>
- getXml() : string
- make() : self|null
- __construct() : mixed
- domToArray() : array<string, mixed>
- parseAttributes() : void
- parseChildNodes() : array<string, mixed>|string
Properties
$contents
protected
array<string, mixed>
$contents
= []
$skipContentOnly
protected
bool
$skipContentOnly
= true
$xml
protected
string
$xml
Methods
getContent()
public
getContent() : array<string, mixed>
Use getContents() instead
Return values
array<string, mixed>getContents()
public
getContents() : array<string, mixed>
Return values
array<string, mixed>getXml()
public
getXml() : string
Return values
stringmake()
public
static make(string $xml[, bool $skipContentOnly = true ]) : self|null
Parameters
- $xml : string
- $skipContentOnly : bool = true
Return values
self|null__construct()
protected
__construct(string $xml[, bool $skipContentOnly = true ]) : mixed
Parameters
- $xml : string
- $skipContentOnly : bool = true
domToArray()
private
domToArray(mixed $root) : array<string, mixed>
Parameters
- $root : mixed
Return values
array<string, mixed>parseAttributes()
private
parseAttributes(mixed $root, array<string|int, mixed> &$output) : void
Parameters
- $root : mixed
- $output : array<string|int, mixed>
parseChildNodes()
private
parseChildNodes(mixed $root, array<string|int, mixed> &$output) : array<string, mixed>|string
Parameters
- $root : mixed
- $output : array<string|int, mixed>