PHP Class Jackalope\NodeType\NodeTypeXmlConverter

Show file Open project: jackalope/jackalope Class Usage Examples

Public Methods

Method Description
__construct ( Jackalope\FactoryInterface $factory ) Empty constructor.
getItemDefinitionFromXml ( DOMElement $node ) : array
getNodeDefinitionFromXml ( DOMElement $node ) : array Convert Node Definition XML into array.
getNodeTypeDefinitionFromXml ( DOMElement $node ) : array Convert NodeTypeDefinition XML into array.
getNodeTypesFromXml ( DOMDocument $dom )
getPropertyDefinitionFromXml ( DOMElement $node ) : array Convert property definition xml into array.

Method Details

__construct() public method

Everything inside jackalope has to accept the factory in the constructor. We define the constructor but do nothing at all.
public __construct ( Jackalope\FactoryInterface $factory )
$factory Jackalope\FactoryInterface the object factory

getItemDefinitionFromXml() public method

public getItemDefinitionFromXml ( DOMElement $node ) : array
$node DOMElement
return array

getNodeDefinitionFromXml() public method

Convert Node Definition XML into array.
public getNodeDefinitionFromXml ( DOMElement $node ) : array
$node DOMElement
return array

getNodeTypeDefinitionFromXml() public method

Convert NodeTypeDefinition XML into array.
public getNodeTypeDefinitionFromXml ( DOMElement $node ) : array
$node DOMElement
return array

getNodeTypesFromXml() public method

public getNodeTypesFromXml ( DOMDocument $dom )
$dom DOMDocument

getPropertyDefinitionFromXml() public method

Convert property definition xml into array.
public getPropertyDefinitionFromXml ( DOMElement $node ) : array
$node DOMElement
return array