class JsonSimpleXMLElementDecorator implements JsonSerializable (View source)

Class JsonSimpleXMLElementDecorator

Constants

DEF_DEPTH

Methods

__construct(SimpleXMLElement $element, $useAttributes = TRUE, $useText = TRUE, $depth = self::DEF_DEPTH)

No description

useAttributes($bool)

No description

useText($bool)

No description

setDepth($depth)

No description

mixed
jsonSerialize()

Specify data which should be serialized to JSON

Details

__construct(SimpleXMLElement $element, $useAttributes = TRUE, $useText = TRUE, $depth = self::DEF_DEPTH)

No description

Parameters

SimpleXMLElement $element
$useAttributes
$useText
$depth

useAttributes($bool)

No description

Parameters

$bool

useText($bool)

No description

Parameters

$bool

setDepth($depth)

No description

Parameters

$depth

mixed jsonSerialize()

Specify data which should be serialized to JSON

Return Value

mixed

data which can be serialized by json_encode.