testing search function
This commit is contained in:
parent
428780eb6f
commit
2779051a82
@ -97,13 +97,13 @@ class SearchPage extends Page {
|
||||
$mustMatchCheck = array();
|
||||
foreach($mustIncludeArray as $mustIncludeItem) { // pajar om Arrayen enbart har ett item???
|
||||
|
||||
$mustIncludeItemCheck = $item->matches($mustIncludeItem); // matchar inte korrekt???
|
||||
if ($mustIncludeItemCheck) {
|
||||
$mustMatchCheck[] = outbool(True);
|
||||
}
|
||||
else {
|
||||
$mustMatchCheck[] = outbool(False);
|
||||
}
|
||||
// $mustIncludeItemCheck = $item->matches($mustIncludeItem); // matchar inte korrekt???
|
||||
// if ($mustIncludeItemCheck) {
|
||||
// $mustMatchCheck[] = outbool(True);
|
||||
// }
|
||||
// else {
|
||||
// $mustMatchCheck[] = outbool(False);
|
||||
// }
|
||||
}
|
||||
|
||||
// if (array_product($mustMatchCheck)) {
|
||||
@ -111,7 +111,7 @@ class SearchPage extends Page {
|
||||
// }
|
||||
}
|
||||
|
||||
// $out = array();
|
||||
$out = array();
|
||||
// foreach ($sanitizedDB as $sanitizedItem) {
|
||||
// if ($sanitizedItem->matches($mustExcludeArray)) {
|
||||
|
||||
@ -124,7 +124,7 @@ class SearchPage extends Page {
|
||||
// // }
|
||||
// }
|
||||
// }
|
||||
// return $out;
|
||||
return $out;
|
||||
}
|
||||
|
||||
private function translate_terms($terms) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user