testing search function
This commit is contained in:
parent
6946b75dc0
commit
0192aa32f6
@ -117,9 +117,9 @@ class SearchPage extends Page {
|
||||
print('DEBUG $item[0][0]: ');
|
||||
var_dump($item[0][0]);
|
||||
print('<br>');
|
||||
print('DEBUG $item[0[0]]: ');
|
||||
var_dump($item[0[0]]);
|
||||
print('<br>');
|
||||
// print('DEBUG $item[0[0]]: ');
|
||||
// var_dump($item[0[0]]);
|
||||
// print('<br>');
|
||||
|
||||
$mustMatchCheck = False;
|
||||
foreach($mustIncludeArray as $mustIncludeItem) {
|
||||
@ -153,20 +153,20 @@ class SearchPage extends Page {
|
||||
}
|
||||
}
|
||||
|
||||
$out = array();
|
||||
foreach ($sanitizedDB as $sanitizedItem) {
|
||||
if ($sanitizedItem->matches($mustExcludeArray)) {
|
||||
// $out = array();
|
||||
// foreach ($sanitizedDB as $sanitizedItem) {
|
||||
// if ($sanitizedItem->matches($mustExcludeArray)) {
|
||||
|
||||
// === IF TRUE DO NOTHING ===
|
||||
// // === IF TRUE DO NOTHING ===
|
||||
|
||||
} else {
|
||||
// $result = $sanitizedItem->matches($canIncludeArray);
|
||||
// if($result) {
|
||||
// $out[] = array($sanitizedItem, $result);
|
||||
// }
|
||||
}
|
||||
}
|
||||
return $out;
|
||||
// } else {
|
||||
// // $result = $sanitizedItem->matches($canIncludeArray);
|
||||
// // if($result) {
|
||||
// // $out[] = array($sanitizedItem, $result);
|
||||
// // }
|
||||
// }
|
||||
// }
|
||||
// return $out;
|
||||
}
|
||||
|
||||
private function translate_terms($terms) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user