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

        if (empty($this->data_product)) {
            $this->outputHttpStatus(404);
        }

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

        if (empty($this->data_product)) {
            $this->outputHttpStatus(404);
        }

        $this->prepareProductBundle($this->data_product);
    }
protected function setProductProductBundle ( $ product_id ) { $ this -> data_product = $ this -> product -> get ( $ product_id ) ; if ( empty ( $ this -> data_product ) ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> prepareProductBundle ( $ this -> data_product ) ; }
Sets the product data
@param integer $product_id
Sets the product data