protected function FuzzySearchService::findTable in Fuzzy Search 7
Helper method for finding any needed table for a filter query.
File
- includes/
service.inc, line 1150
Class
- FuzzySearchService
- Search service class using the database for storing index information.
Code
protected function findTable(array $filters, array $fields) {
foreach ($filters as $filter) {
if (is_array($filter)) {
return $fields[$filter[0]]['table'];
}
}
foreach ($filters as $filter) {
if (is_object($filter)) {
$ret = $this
->findTable($filter
->getFilters(), $fields);
if ($ret) {
return $ret;
}
}
}
}