/** * @param Category $category * @param Filter $filter * @return array */ protected function setUpFilterQuery(Category $category, Filter $filter) { if ($filter->isMultiSelectFilter()) { $param = array($category->getUid() => $category->getFilterOptionTag()); } else { $param = $category->getFilterOptionTag(); } return array($filter->getUid() => $param); }
/** * @param Category $category * @return array */ protected function getFilterOptionByCategory(Category $category) { return array('uid' => $category->getUid(), 'title' => $category->getTitle(), 'tag' => $category->getFilterOptionTag()); }