public function getBaseName() { return parent::_getBaseName(); }
/** * @param AbstractMulti $filter * @param array $criteria * * @return AbstractMulti * @throws InvalidArgumentException * @throws \Exception */ protected function generateFilterHelper($filter, $criteria) { foreach ($criteria as $key => $value) { if ($this->isHasChild($key) || $this->isHasParent($key)) { $filter->addFilter($this->getFilterForHasParentOrHasChild($key, $value)); } elseif ($key == SearchManager::CRITERIA_OR) { $filter->addFilter($this->generateOrFilterBy($value)); } elseif ($key == SearchManager::CRITERIA_AND) { $filter->addFilter($this->generateAndFilterBy($value)); } elseif ($value instanceof Range) { $filter->addFilter($this->getRangeFilter($key, $value)); } elseif ($value instanceof Not) { $filter->addFilter($this->getNotFilter($key, $value)); } elseif ($value instanceof Exists) { $filter->addFilter($this->getExistsFilter($key)); } elseif ($value instanceof Missing) { $filter->addFilter($this->getMissingFilter($key, $value)); } else { $filter->addFilter($this->getTermOrTermsFilter($key, $value)); } } return $filter; }