protected function getElementConfig(DOMElement $element)
	{
		$config = [];
		foreach ($element->attributes as $attribute)
		{
			$config[$attribute->name][] = $attribute->value;
		}
		foreach ($element->childNodes as $childNode)
		{
			if ($childNode instanceof DOMElement)
			{
				$config[$childNode->nodeName][] = $this->getValueFromElement($childNode);
			}
		}

		return $this->flattenConfig($this->convertValueTypes($config));
	}
protected function getElementConfig(DOMElement $element)
	{
		$config = [];
		foreach ($element->attributes as $attribute)
		{
			$config[$attribute->name][] = $attribute->value;
		}
		foreach ($element->childNodes as $childNode)
		{
			if ($childNode instanceof DOMElement)
			{
				$config[$childNode->nodeName][] = $this->getValueFromElement($childNode);
			}
		}

		return $this->flattenConfig($this->convertValueTypes($config));
	}
protected function getElementConfig ( DOMElement $ element ) { $ config = [ ] ; foreach ( $ element -> attributes as $ attribute ) { $ config [ $ attribute -> name ] [ ] = $ attribute -> value ; } foreach ( $ element -> childNodes as $ childNode ) { if ( $ childNode instanceof DOMElement ) { $ config [ $ childNode -> nodeName ] [ ] = $ this -> getValueFromElement ( $ childNode ) ; } } return $ this -> flattenConfig ( $ this -> convertValueTypes ( $ config ) ) ; }
Extract a site's config from its XML representation

@param  DOMElement $element Current node
@return mixed
Extract a site s config from its XML representation