public function getCategoryNames() { $catTable = new FM_Models_FM_SearchPrimaryCategories(); $cats = array(); foreach ($this->getCategories() as $key => $value) { $cat = $catTable->getCategoryByKeys(array('id' => $value)); if (count($cat)) { $cats[] = $cat['name']; } } return $cats; }