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