mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
@@ -46,7 +46,7 @@ interface SearchInterface #-> good name ?
|
||||
* @param array $option the options, specific for each search
|
||||
* @return string, an HTML string
|
||||
*/
|
||||
public function renderResult($terms, $start=0, $limit=50, array $options = array());
|
||||
public function renderResult(array $terms, $start=0, $limit=50, array $options = array());
|
||||
|
||||
/**
|
||||
* we may desactive the search interface by default. in this case,
|
||||
|
@@ -130,7 +130,7 @@ class SearchProvider
|
||||
$terms = $this->parse($pattern);
|
||||
$results = array();
|
||||
|
||||
foreach ($searchServices as $service) {
|
||||
foreach ($this->searchServices as $service) {
|
||||
if ($service->supports($terms['_domain'])) {
|
||||
$results[] = $service->renderResult($terms, $start, $limit);
|
||||
}
|
||||
|
Reference in New Issue
Block a user