protected function setProductReview($product_id)
    {
        $this->data_product = $this->product->get($product_id);

        if (empty($this->data_product['status']) || $this->data_product['store_id'] != $this->store_id) {
            $this->outputHttpStatus(404);
        }

        $this->prepareProductReview($this->data_product);
    }
protected function setProductReview($product_id)
    {
        $this->data_product = $this->product->get($product_id);

        if (empty($this->data_product['status']) || $this->data_product['store_id'] != $this->store_id) {
            $this->outputHttpStatus(404);
        }

        $this->prepareProductReview($this->data_product);
    }
protected function setProductReview ( $ product_id ) { $ this -> data_product = $ this -> product -> get ( $ product_id ) ; if ( empty ( $ this -> data_product [ 'status' ] ) || $ this -> data_product [ 'store_id' ] != $ this -> store_id ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> prepareProductReview ( $ this -> data_product ) ; }
Sets a product data
@param integer $product_id
Sets a product data