protected function prepareReview(array &$review)
    {
        $rating = $this->rating->getByUser($this->data_product['product_id'], $this->uid);
        $review['rating'] = isset($rating['rating']) ? $rating['rating'] : 0;
    }
protected function prepareReview(array &$review)
    {
        $rating = $this->rating->getByUser($this->data_product['product_id'], $this->uid);
        $review['rating'] = isset($rating['rating']) ? $rating['rating'] : 0;
    }
protected function prepareReview ( array & $ review ) { $ rating = $ this -> rating -> getByUser ( $ this -> data_product [ 'product_id' ] , $ this -> uid ) ; $ review [ 'rating' ] = isset ( $ rating [ 'rating' ] ) ? $ rating [ 'rating' ] : 0 ; }
Prepares an array of review data
@param array $review
Prepares an array of review data