protected function setCategory($category_id)
    {
        $options = array(
            'category_id' => $category_id,
            'language' => $this->langcode,
            'store_id' => $this->store_id
        );

        $this->data_category = $this->category->get($options);

        if (empty($this->data_category['status'])) {
            $this->outputHttpStatus(404);
        }

        $this->prepareCategory($this->data_category);
    }
protected function setCategory($category_id)
    {
        $options = array(
            'category_id' => $category_id,
            'language' => $this->langcode,
            'store_id' => $this->store_id
        );

        $this->data_category = $this->category->get($options);

        if (empty($this->data_category['status'])) {
            $this->outputHttpStatus(404);
        }

        $this->prepareCategory($this->data_category);
    }
protected function setCategory ( $ category_id ) { $ options = array ( 'category_id' => $ category_id , 'language' => $ this -> langcode , 'store_id' => $ this -> store_id ) ; $ this -> data_category = $ this -> category -> get ( $ options ) ; if ( empty ( $ this -> data_category [ 'status' ] ) ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> prepareCategory ( $ this -> data_category ) ; }
Sets a category data
@param integer $category_id
Sets a category data