Ejemplo n.º 1
0
 /**
  * Add an exclude tag
  *
  * Excludes added to the MultiQuery facet a shared by all underlying
  * FacetQueries, so they must be forwarded to any existing instances.
  *
  * If you don't want to share an exclude use the addExclude method of a
  * specific FacetQuery instance instead.
  *
  * @param string $tag
  * @return Solarium_Query_Select_Component_Facet Provides fluent interface
  */
 public function addExclude($exclude)
 {
     foreach ($this->_facetQueries as $facetQuery) {
         $facetQuery->addExclude($exclude);
     }
     return parent::addExclude($exclude);
 }
Ejemplo n.º 2
0
 public function testAddExclude()
 {
     $this->_facet->addExclude('e1');
     $this->assertEquals(array('e1'), $this->_facet->getExcludes());
 }