src/Sulu/Bundle/MediaBundle/Media/FormatLoader/BaseXmlFormatLoader.php
protected function getParametersFromNode($node, $parameterName = 'parameter')
    {
        if (null === $node) {
            return [];
        }

        $parameters = [];
        foreach ($this->xpath->query('x:' . $parameterName, $node) as $parameterNode) {
            $name = $this->xpath->query('@name', $parameterNode)->item(0)->nodeValue;
            $parameters[$name] = $parameterNode->nodeValue;
        }

        return $parameters;
    }
protected function getParametersFromNode($node, $parameterName = 'parameter')
    {
        if (null === $node) {
            return [];
        }

        $parameters = [];
        foreach ($this->xpath->query('x:' . $parameterName, $node) as $parameterNode) {
            $name = $this->xpath->query('@name', $parameterNode)->item(0)->nodeValue;
            $parameters[$name] = $parameterNode->nodeValue;
        }

        return $parameters;
    }
protected function getParametersFromNode ( $ node , $ parameterName = 'parameter' ) { if ( null === $ node ) { return [ ] ; } $ parameters = [ ] ; foreach ( $ this -> xpath -> query ( 'x:' . $ parameterName , $ node ) as $ parameterNode ) { $ name = $ this -> xpath -> query ( '@name' , $ parameterNode ) -> item ( 0 ) -> nodeValue ; $ parameters [ $ name ] = $ parameterNode -> nodeValue ; } return $ parameters ; }
For a given dom node returns an array of parameters. The xml name of the parameter
tag can be passed as an argument.

@param \DOMNode $node
@param string $parameterName

@return array
For a given dom node returns an array of parameters . The xml name of the parameter tag can be passed as an argument .