Example #1
0
 /**
  * Constructor
  * 
  * @param Model $model The model to filter
  */
 public function __construct($model, $class, $set_defaults = true)
 {
     $this->model = $model;
     $this->class = $class;
     $this->order_by = new OrderBy($this, $model);
     $this->facet = new Facets($this, $model);
     $this->highlight = new Highlights($this, $model);
     if ($set_defaults) {
         $model->set_filter_defaults($this);
     }
 }