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:
2018-04-04 09:46:30 +02:00
parent 08141fddee
commit 29e3c74bd7
8 changed files with 80 additions and 5 deletions

View File

@@ -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