protected function toConfigArray($source, $nodeName)
    {
        $items = [];
        $config = $source->getElementsByTagName($nodeName);
        
        foreach($config as $configNode) {
            $item = [];
            foreach($configNode->attributes as $attribute) {
                $item[$attribute->name] = $attribute->value;
            }
            $items []= $item;
        }

        return $items;
    }
protected function toConfigArray($source, $nodeName)
    {
        $items = [];
        $config = $source->getElementsByTagName($nodeName);
        
        foreach($config as $configNode) {
            $item = [];
            foreach($configNode->attributes as $attribute) {
                $item[$attribute->name] = $attribute->value;
            }
            $items []= $item;
        }

        return $items;
    }
protected function toConfigArray ( $ source , $ nodeName ) { $ items = [ ] ; $ config = $ source -> getElementsByTagName ( $ nodeName ) ; foreach ( $ config as $ configNode ) { $ item = [ ] ; foreach ( $ configNode -> attributes as $ attribute ) { $ item [ $ attribute -> name ] = $ attribute -> value ; } $ items [ ] = $ item ; } return $ items ; }
Return config node converted to array
Return config node converted to array