protected function submitEditReview()
    {
        if ($this->isPosted('delete')) {
            $this->deleteReview();
        } else if ($this->isPosted('save') && $this->validateEditReview()) {
            if (isset($this->data_review['review_id'])) {
                $this->updateReview();
            } else {
                $this->addReview();
            }
        }
    }
protected function submitEditReview()
    {
        if ($this->isPosted('delete')) {
            $this->deleteReview();
        } else if ($this->isPosted('save') && $this->validateEditReview()) {
            if (isset($this->data_review['review_id'])) {
                $this->updateReview();
            } else {
                $this->addReview();
            }
        }
    }
protected function submitEditReview ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteReview ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditReview ( ) ) { if ( isset ( $ this -> data_review [ 'review_id' ] ) ) { $ this -> updateReview ( ) ; } else { $ this -> addReview ( ) ; } } }
Handles a submitted review
Handles a submitted review