Example #1
0
 /**
  * Add a field to facet on.
  *
  * @access  public
  * @param   string  $newField   Field name
  * @param   string  $newAlias   Optional on-screen display label
  */
 public function addFacet($newField, $newAlias = null)
 {
     // Save the full field name (which may include extra parameters);
     // we'll need these to do the proper search using the Summon class:
     $this->fullFacetSettings[] = $newField;
     // Strip parameters from field name if necessary (since they get
     // in the way of most Search Object functionality):
     $newField = explode(',', $newField);
     $newField = trim($newField[0]);
     parent::addFacet($newField, $newAlias);
 }