Zed. The source code to build a world.

XmlDocument
in package

Table of Contents

Properties

$data  : mixed
$dataNodeName  : string
$output  : SimpleXMLElement
$rootNodeName  : string
$unknownNodeName  : string

Methods

__construct()  : mixed
build()  : string
toXml()  : string
buildElement()  : void
getScalarElement()  : string

Properties

$dataNodeName read-only

private string $dataNodeName = 'item'

$rootNodeName read-only

private string $rootNodeName = 'data'

$unknownNodeName read-only

private string $unknownNodeName = 'unknownNode'

Methods

__construct()

public __construct(mixed $data[, string $rootNodeName = 'data' ][, string $dataNodeName = 'item' ][, string $unknownNodeName = 'unknownNode' ]) : mixed
Parameters
$data : mixed
$rootNodeName : string = 'data'
$dataNodeName : string = 'item'
$unknownNodeName : string = 'unknownNode'

build()

public build() : string
Return values
string

toXml()

public static toXml(mixed $data[, string $rootNodeName = 'data' ][, string $dataNodeName = 'item' ][, string $unknownNodeName = 'unknownNode' ]) : string
Parameters
$data : mixed
$rootNodeName : string = 'data'
$dataNodeName : string = 'item'
$unknownNodeName : string = 'unknownNode'
Return values
string

buildElement()

private buildElement(mixed $data, SimpleXMLElement $parent[, string $nodeName = null ]) : void
Parameters
$data : mixed
$parent : SimpleXMLElement
$nodeName : string = null

getScalarElement()

private static getScalarElement(mixed $data) : string
Parameters
$data : mixed
Return values
string

        
On this page

Search results