コード例 #1
0
ファイル: FacetTest.php プロジェクト: starsw001/solarium
 public function testClearExcludes()
 {
     $this->facet->addExcludes(array('e1', 'e2'));
     $this->facet->clearExcludes();
     $this->assertEquals(array(), $this->facet->getExcludes());
 }
コード例 #2
0
ファイル: MultiQuery.php プロジェクト: starsw001/solarium
 /**
  * Remove all excludes.
  *
  * Excludes added to the MultiQuery facet a shared by all underlying
  * FacetQueries, so changes must be forwarded to any existing instances.
  *
  * If you don't want this use the clearExcludes method of a
  * specific FacetQuery instance instead.
  *
  * @return self Provides fluent interface
  */
 public function clearExcludes()
 {
     foreach ($this->facetQueries as $facetQuery) {
         $facetQuery->clearExcludes();
     }
     return parent::clearExcludes();
 }