protected function getReviewsProduct(array $limit)
    {
        $options = array(
            'status' => 1,
            'limit' => $limit,
            'user_status' => 1,
            'sort' => 'created',
            'order' => 'desc',
            'product_id' => $this->data_product['product_id']
        );

        $options += $this->query;
        $list = (array) $this->review->getList($options);
        $this->prepareReviewsProduct($list);
        return $list;
    }
protected function getReviewsProduct(array $limit)
    {
        $options = array(
            'status' => 1,
            'limit' => $limit,
            'user_status' => 1,
            'sort' => 'created',
            'order' => 'desc',
            'product_id' => $this->data_product['product_id']
        );

        $options += $this->query;
        $list = (array) $this->review->getList($options);
        $this->prepareReviewsProduct($list);
        return $list;
    }
protected function getReviewsProduct ( array $ limit ) { $ options = array ( 'status' => 1 , 'limit' => $ limit , 'user_status' => 1 , 'sort' => 'created' , 'order' => 'desc' , 'product_id' => $ this -> data_product [ 'product_id' ] ) ; $ options += $ this -> query ; $ list = ( array ) $ this -> review -> getList ( $ options ) ; $ this -> prepareReviewsProduct ( $ list ) ; return $ list ; }
Returns an array of reviews for the product
@param array $limit
@return array
Returns an array of reviews for the product