Documentation

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

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>

make()

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>
Return values
array<string, mixed>|string

        
On this page

Search results