testing search function
This commit is contained in:
parent
976ca1cfaa
commit
51194682db
@ -106,7 +106,7 @@ class SearchPage extends Page {
|
|||||||
|
|
||||||
$mustMatchCheck = array();
|
$mustMatchCheck = array();
|
||||||
foreach($mustIncludeArray as $mustIncludeTerm) {
|
foreach($mustIncludeArray as $mustIncludeTerm) {
|
||||||
if (array_key_exists($mustIncludeTerm, $mustMatchCheck)) {
|
if (in_array(False, $mustMatchCheck, True) === True) {
|
||||||
$mustMatchCheck[] = True;
|
$mustMatchCheck[] = True;
|
||||||
print('DEBUG added TRUE to $mustMatchCheck[]<br>');
|
print('DEBUG added TRUE to $mustMatchCheck[]<br>');
|
||||||
} else {
|
} else {
|
||||||
@ -114,13 +114,15 @@ class SearchPage extends Page {
|
|||||||
print('DEBUG added FALSE to $mustMatchCheck[]<br>');
|
print('DEBUG added FALSE to $mustMatchCheck[]<br>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print('DEBUG $sanitizedItem: ');
|
|
||||||
var_dump($sanitizedItem);
|
|
||||||
print('<br><br>');
|
|
||||||
|
|
||||||
if(in_array(False, $mustIncludeCheck, True) === False) {
|
if(in_array(False, $mustIncludeCheck, True) === False) {
|
||||||
$sanitizedItems[] = array($item, $mustMatch);
|
$sanitizedItems[] = array($item, $mustMatch);
|
||||||
}
|
}
|
||||||
|
print('DEBUG $sanitizedItem: ');
|
||||||
|
var_dump($sanitizedItem);
|
||||||
|
print('<br><br>');
|
||||||
|
|
||||||
// $mustIncludeCheck = array();
|
// $mustIncludeCheck = array();
|
||||||
// foreach($mustIncludeArray as $mustIncludeTerm) {
|
// foreach($mustIncludeArray as $mustIncludeTerm) {
|
||||||
// if ($item->matches($mustIncludeTerm)) {
|
// if ($item->matches($mustIncludeTerm)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user