\XmlToArrayNode
XML To Array Node
- Author: SOFORT AG (integration@sofort.com)
- Copyright: 2010-2014 SOFORT AG
- License: Released under the GNU LESSER GENERAL PUBLIC LICENSE (Version 3)
Synopsis
class XmlToArrayNode
{
- // members
- private array $_attributes = ;
- private array $_children = ;
- private string $_data = '';
- private string $_name = '';
- private bool $_open = true;
- private $_ParentXmlToArrayNode = NULL;
- // methods
- public XmlToArrayNode __construct()
- public void addChild()
- public array getData()
- public string getName()
- public XmlToArrayNode getParentXmlToArrayNode()
- public int hasChildren()
- public bool hasParentXmlToArrayNode()
- public bool isOpen()
- public array render()
- public void setClosed()
- public void setData()
- public void setParentXmlToArrayNode()
- private array _countChildren()
- private void _renderNode()
Members
private
- $_ParentXmlToArrayNode
—
null
Parent XML to Array Node - $_attributes
—
array
Attributes - $_children
—
array
Children - $_data
—
string
Data - $_name
—
string
Name - $_open
—
bool
Open
Methods
private
- _countChildren() — Counts the Children of an array and returns them in an associative array
- _renderNode() — Renders a single node
public
- __construct() — Constructor for XmlToArrayNode
- addChild() — Add a child to collection
- getData() — Getter for data, returns an array
- getName() — Getter for name, returns the name
- getParentXmlToArrayNode() — Getter for parent node
- hasChildren() — Does it have any children
- hasParentXmlToArrayNode() — Does it have a node
- isOpen() — Is it open, returns _open
- render() — Renders nodes as array
- setClosed() — Set it to closed
- setData() — Setter for variable data
- setParentXmlToArrayNode() — Setter for parent node