protected function parseFilters(SimpleXMLElement $xml)
    {
        if (false === $filters = $xml->xpath('//config:filters/config:filter')) {
            return;
        }
        try {
            $filterConfig = $this->container->getParameter("Thelia.parser.filters");
        } catch (ParameterNotFoundException $e) {
            $filterConfig = array();
        }

        foreach ($filters as $filter) {
            $filterConfig[$this->getAttributeAsPhp($filter, "name")] = $this->getAttributeAsPhp($filter, "class");
        }

        $this->container->setParameter("Thelia.parser.filters", $filterConfig);
    }
protected function parseFilters(SimpleXMLElement $xml)
    {
        if (false === $filters = $xml->xpath('//config:filters/config:filter')) {
            return;
        }
        try {
            $filterConfig = $this->container->getParameter("Thelia.parser.filters");
        } catch (ParameterNotFoundException $e) {
            $filterConfig = array();
        }

        foreach ($filters as $filter) {
            $filterConfig[$this->getAttributeAsPhp($filter, "name")] = $this->getAttributeAsPhp($filter, "class");
        }

        $this->container->setParameter("Thelia.parser.filters", $filterConfig);
    }
protected function parseFilters ( SimpleXMLElement $ xml ) { if ( false === $ filters = $ xml -> xpath ( '//config:filters/config:filter' ) ) { return ; } try { $ filterConfig = $ this -> container -> getParameter ( "Thelia.parser.filters" ) ; } catch ( ParameterNotFoundException $ e ) { $ filterConfig = array ( ) ; } foreach ( $ filters as $ filter ) { $ filterConfig [ $ this -> getAttributeAsPhp ( $ filter , "name" ) ] = $ this -> getAttributeAsPhp ( $ filter , "class" ) ; } $ this -> container -> setParameter ( "Thelia.parser.filters" , $ filterConfig ) ; }
parse Filters property

@param SimpleXMLElement $xml
parse Filters property