mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
advanced search (bis)
Ce commit contient des modifications qui sont peut-être dans un autre commit d'une autre branche.
This commit is contained in:
@@ -59,6 +59,19 @@ class SearchProvider
|
||||
|
||||
return $this->searchServices;
|
||||
}
|
||||
|
||||
public function getHasAdvancedFormSearchServices()
|
||||
{
|
||||
//sort the array
|
||||
uasort($this->hasAdvancedFormSearchServices, function(SearchInterface $a, SearchInterface $b) {
|
||||
if ($a->getOrder() == $b->getOrder()) {
|
||||
return 0;
|
||||
}
|
||||
return ($a->getOrder() < $b->getOrder()) ? -1 : 1;
|
||||
});
|
||||
|
||||
return $this->hasAdvancedFormSearchServices;
|
||||
}
|
||||
|
||||
/**
|
||||
* parse the search string to extract domain and terms
|
||||
|
Reference in New Issue
Block a user