testing search function

This commit is contained in:
Viktor Pedersen 2021-08-13 09:48:26 +02:00
parent b73524023d
commit 6097c772ee

@ -102,8 +102,6 @@ class SearchPage extends Page {
print_r($canIncludeArray);
print('<br>');
$items = get_items($type);
$out = array();
@ -115,6 +113,9 @@ class SearchPage extends Page {
// if resultExclude is matching, do === nothing ===
} else {
$canIncludeResult = $item->matches($canIncludeArray);
$out[] = array($item, $canIncludeResult);
/*
$mustIncludeCheck = False;
if(count($mustIncludeArray) > 0) {
foreach($mustIncludeArray as $mustIncludeArgument) {
@ -135,7 +136,7 @@ class SearchPage extends Page {
$mustIncludeResult = $item->matches($mustIncludeArray);
$out[] = array($item, $mustIncludeResult);
}
}
}*/
}
}