cleaning up debug printouts in search function
This commit is contained in:
parent
e839a5b3a1
commit
815021cd1e
@ -29,10 +29,10 @@ class SearchPage extends Page {
|
||||
return $out;
|
||||
}
|
||||
foreach(array('user', 'product') as $type) {
|
||||
// print('=== DEBUG $type:');
|
||||
// print_r($type);
|
||||
// print(' ===<br>');
|
||||
// print('<br>');
|
||||
print('=== DEBUG $type:');
|
||||
print_r($type);
|
||||
print(' ===<br>');
|
||||
print('<br>');
|
||||
$result = $this->search($type, $this->terms);
|
||||
if($result) {
|
||||
$out[$type] = $result;
|
||||
@ -113,7 +113,18 @@ class SearchPage extends Page {
|
||||
$canIncludeArray[] = array($key, $parsedTerm);
|
||||
break;
|
||||
}
|
||||
|
||||
print('DEBUG VAR_DUMP: $mustIncludeArray ');
|
||||
var_dump($mustIncludeArray);
|
||||
print('<br>');
|
||||
print('DEBUG VAR_DUMP: $mustExcludeArray ');
|
||||
var_dump($mustExcludeArray);
|
||||
print('<br>');
|
||||
print('DEBUG VAR_DUMP: $canIncludeArray ');
|
||||
var_dump($canIncludeArray);
|
||||
print('<br>');
|
||||
}
|
||||
print('<br>');
|
||||
}
|
||||
|
||||
$items = get_items($type);
|
||||
@ -136,7 +147,7 @@ class SearchPage extends Page {
|
||||
// }
|
||||
// print('<br>');
|
||||
}
|
||||
print('<br>');
|
||||
// print('<br>');
|
||||
|
||||
// if (array_product($mustMatchCheck)) {
|
||||
// $sanitizedDB[] = array($item, $mustIncludeTermCheck);
|
||||
|
Loading…
x
Reference in New Issue
Block a user