testing search function

This commit is contained in:
Viktor Pedersen 2021-09-06 10:42:16 +02:00
parent 4a6e62d898
commit c4318c0333

@ -134,23 +134,26 @@ class SearchPage extends Page {
$mustExcludeCheck[] = True;
print('Added TRUE to $mustExcludeCheck[]<br>');
}
print('DEBUG $item: ');
var_dump($item);
print('<br>');
print('DEBUG $mustExcludeCheck: ');
var_dump($mustExcludeCheck);
print('<br>');
print('<br>');
}
if ($mustExcludeCheck) {
// if ($mustExcludeCheck) {
// === IF TRUE DO NOTHING ===
// // === IF TRUE DO NOTHING ===
} else {
foreach ($canIncludeArray as $canIncludeTerm) {
$result = $item->matches($canIncludeTerm);
if($result) {
$out[] = array($item, $result);
}
}
}
// } else {
// foreach ($canIncludeArray as $canIncludeTerm) {
// $result = $item->matches($canIncludeTerm);
// if($result) {
// $out[] = array($item, $result);
// }
// }
// }
}
return $out;
}