protected function validateEditReview()
    {
        $this->setSubmitted('review');
        $this->filterSubmitted(array('text', 'rating'));
        $this->setSubmitted('user_id', $this->uid);
        $this->setSubmitted('update', $this->data_review);
        $this->setSubmitted('product_id', $this->data_product['product_id']);
        $this->setSubmitted('status', (int) $this->config('review_status', 1));

        $this->validateComponent('review');

        return !$this->hasErrors(false);
    }
protected function validateEditReview()
    {
        $this->setSubmitted('review');
        $this->filterSubmitted(array('text', 'rating'));
        $this->setSubmitted('user_id', $this->uid);
        $this->setSubmitted('update', $this->data_review);
        $this->setSubmitted('product_id', $this->data_product['product_id']);
        $this->setSubmitted('status', (int) $this->config('review_status', 1));

        $this->validateComponent('review');

        return !$this->hasErrors(false);
    }
protected function validateEditReview ( ) { $ this -> setSubmitted ( 'review' ) ; $ this -> filterSubmitted ( array ( 'text' , 'rating' ) ) ; $ this -> setSubmitted ( 'user_id' , $ this -> uid ) ; $ this -> setSubmitted ( 'update' , $ this -> data_review ) ; $ this -> setSubmitted ( 'product_id' , $ this -> data_product [ 'product_id' ] ) ; $ this -> setSubmitted ( 'status' , ( int ) $ this -> config ( 'review_status' , 1 ) ) ; $ this -> validateComponent ( 'review' ) ; return ! $ this -> hasErrors ( false ) ; }
Validates an array of submitted review data
@return bool
Validates an array of submitted review data