12 public function add($results, $category) {
13 $count=\sizeof($this->categories);
14 if (\array_key_exists($category, $this->categories)) {
15 $this->categories[$category]->addResults($results);
17 $categoryO=
new SearchCategory(
"category" . $count, $category, $results);
18 $this->categories[$category]=$categoryO;