protected function addFacetOptions($dom, $elem)
    {
        if (!empty($this->facetOptions)) {
            foreach ($this->facetOptions as $opt) {
                $facetElem = $dom->createElement('facet-option');
                $facetElem->nodeValue = $opt;
                $elem->appendChild($facetElem);
            }
        }
        return $elem;
    }
protected function addFacetOptions($dom, $elem)
    {
        if (!empty($this->facetOptions)) {
            foreach ($this->facetOptions as $opt) {
                $facetElem = $dom->createElement('facet-option');
                $facetElem->nodeValue = $opt;
                $elem->appendChild($facetElem);
            }
        }
        return $elem;
    }
protected function addFacetOptions ( $ dom , $ elem ) { if ( ! empty ( $ this -> facetOptions ) ) { foreach ( $ this -> facetOptions as $ opt ) { $ facetElem = $ dom -> createElement ( 'facet-option' ) ; $ facetElem -> nodeValue = $ opt ; $ elem -> appendChild ( $ facetElem ) ; } } return $ elem ; }
Add facet options to an element.

@param DOMDocument $dom A DOM document.
@param DOMElement $elem A DOM element.
@return DOMElement The updated element.
Add facet options to an element .