testing search function
This commit is contained in:
parent
fa30f4b0f7
commit
1c6f3ae058
@ -102,7 +102,8 @@ class SearchPage extends Page {
|
||||
foreach($items as $item) {
|
||||
$result = $item->matches($mustMatchArray, True);
|
||||
if($result) {
|
||||
$sanitizedItems[] = array($item, $result);
|
||||
// $sanitizedItems[] = array($item, $result);
|
||||
$out[] = array($item, $result);
|
||||
}
|
||||
|
||||
// $mustMatchCheck = array();
|
||||
@ -146,10 +147,10 @@ class SearchPage extends Page {
|
||||
// }
|
||||
}
|
||||
|
||||
foreach($sanitizedItems as $sanitizedItem) {
|
||||
print('DEBUG $sanitizedItem: ');
|
||||
var_dump($sanitizedItem);
|
||||
print('<br><br>');
|
||||
// foreach($sanitizedItems as $sanitizedItem) {
|
||||
// print('DEBUG $sanitizedItem: ');
|
||||
// var_dump($sanitizedItem);
|
||||
// print('<br><br>');
|
||||
|
||||
// if($sanitizedItem->matches($cannotMatchArray)) {
|
||||
|
||||
@ -164,8 +165,8 @@ class SearchPage extends Page {
|
||||
// }
|
||||
}
|
||||
|
||||
return array();
|
||||
// return $out;
|
||||
// return array();
|
||||
return $out;
|
||||
}
|
||||
|
||||
private function translate_terms($terms) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user