Esempio n. 1
0
 /**
  * Gets the facet's options
  *
  * @return array An array with facet options.
  */
 public function getOptionsRaw()
 {
     $facetOptions = array();
     switch ($this->type) {
         case self::TYPE_FIELD:
             $facetOptions = $this->search->getFacetFieldOptions($this->field);
             break;
         case self::TYPE_QUERY:
             $facetOptions = $this->search->getFacetQueryOptions($this->field);
             break;
         case self::TYPE_RANGE:
             $facetOptions = $this->search->getFacetRangeOptions($this->field);
             break;
     }
     return $facetOptions;
 }