21 private $converterUtils;
28 $this->converterUtils = $converterUtils;
36 if ($node->nodeType !== XML_ELEMENT_NODE) {
52 if ($node->localName !=
'param') {
55 if ($this->hasChildNodes($node)) {
58 $nodeValue = trim($node->nodeValue);
59 if ($nodeValue !==
'') {
64 if ($node->hasAttributes() && $node->nodeType === XML_ELEMENT_NODE) {
76 private function hasChildNodes(\DOMNode $node)
78 if ($node->hasChildNodes()) {
79 foreach ($node->childNodes as $childNode) {
80 if ($childNode->nodeType == XML_ELEMENT_NODE) {
94 private function processAttributes(\DOMNode $node)
113 private function processChildNodes(\DOMNode $node)
117 foreach ($node->childNodes as $childNode) {
118 if ($childNode->nodeType === XML_ELEMENT_NODE) {
119 $result[
'param'][$this->converterUtils->getComponentName($childNode)] = $this->
toArray($childNode);
convert(\DOMNode $node, array $data=[])
__construct(ConverterUtils $converterUtils)