protected function getListCategoryProduct($store_id)
    {
        $types = $this->category_group->getTypes();

        $categories = array();
        foreach (array_keys($types) as $type) {

            $op = array(
                'type' => $type,
                'store_id' => $store_id
            );

            $data = $this->getCategoryOptionsByStore($this->category, $this->category_group, $op);
            $categories[$type] = reset($data);
        }

        return $categories;
    }
protected function getListCategoryProduct($store_id)
    {
        $types = $this->category_group->getTypes();

        $categories = array();
        foreach (array_keys($types) as $type) {

            $op = array(
                'type' => $type,
                'store_id' => $store_id
            );

            $data = $this->getCategoryOptionsByStore($this->category, $this->category_group, $op);
            $categories[$type] = reset($data);
        }

        return $categories;
    }
protected function getListCategoryProduct ( $ store_id ) { $ types = $ this -> category_group -> getTypes ( ) ; $ categories = array ( ) ; foreach ( array_keys ( $ types ) as $ type ) { $ op = array ( 'type' => $ type , 'store_id' => $ store_id ) ; $ data = $ this -> getCategoryOptionsByStore ( $ this -> category , $ this -> category_group , $ op ) ; $ categories [ $ type ] = reset ( $ data ) ; } return $ categories ; }
Returns an array of categories keyed by a type
@param integer $store_id
@return array
Returns an array of categories keyed by a type