Esempio n. 1
0
 /**
  * Initialize options
  *
  * Several options need some extra checks or setup work, for these options
  * the setters are called.
  *
  * @return void
  */
 protected function init()
 {
     parent::init();
     foreach ($this->options as $name => $value) {
         switch ($name) {
             case 'set':
                 $this->setSet($value);
                 break;
         }
     }
 }
Esempio n. 2
0
 /**
  * Initialize options
  *
  * Several options need some extra checks or setup work, for these options
  * the setters are called.
  *
  * @return void
  */
 protected function init()
 {
     parent::init();
     foreach ($this->options as $name => $value) {
         switch ($name) {
             case 'include':
                 $this->setInclude($value);
                 break;
             case 'other':
                 $this->setOther($value);
                 break;
         }
     }
 }
Esempio n. 3
0
 public function testSetExcludes()
 {
     $this->facet->addExcludes(array('e1', 'e2'));
     $this->facet->setExcludes(array('e3', 'e4'));
     $this->assertEquals(array('e3', 'e4'), $this->facet->getExcludes());
 }
Esempio n. 4
0
 /**
  * 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();
 }