コード例 #1
0
ファイル: Interval.php プロジェクト: starsw001/solarium
 /**
  * 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;
         }
     }
 }
コード例 #2
0
ファイル: FacetTest.php プロジェクト: starsw001/solarium
 public function testSetExcludes()
 {
     $this->facet->addExcludes(array('e1', 'e2'));
     $this->facet->setExcludes(array('e3', 'e4'));
     $this->assertEquals(array('e3', 'e4'), $this->facet->getExcludes());
 }
コード例 #3
0
ファイル: Range.php プロジェクト: starsw001/solarium
 /**
  * Initialize options.
  *
  * Several options need some extra checks or setup work, for these options
  * the setters are called.
  */
 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;
         }
     }
 }
コード例 #4
0
ファイル: MultiQuery.php プロジェクト: starsw001/solarium
 /**
  * Initialize options.
  *
  * Several options need some extra checks or setup work, for these options
  * the setters are called.
  */
 protected function init()
 {
     parent::init();
     foreach ($this->options as $name => $value) {
         switch ($name) {
             case 'query':
                 if (!is_array($value)) {
                     $value = array(array('query' => $value));
                 }
                 $this->addQueries($value);
                 break;
         }
     }
 }