/**
  * action reviewed
  *
  * @param Tx_Contentstage_Domain_Model_Review $review
  * @param string $submitButton The submit text.
  * @param boolean $usedByCreate Whether this function is called from createAction.
  * @return void
  */
 public function reviewedAction(Tx_Contentstage_Domain_Model_Review $review, $submitButton, $usedByCreate = false)
 {
     $found = $review->getActiveReviewed($this->activeBackendUser);
     if ($found === null) {
         $this->log->log($this->translate('info.review.notAssigned'), Tx_CabagExtbase_Utility_Logging::WARNING);
     } else {
         $ok = $submitButton === $this->translate('review.submit.ok');
         $found->setOk($ok);
         $found->setReviewed(new DateTime());
         $this->reviewedRepository->update($found);
         $changed = $review->calculateState($this->activeBackendUser);
         $this->log->log($this->translate('info.review.' . ($ok ? 'accepted' : 'rejected')), Tx_CabagExtbase_Utility_Logging::OK, Tx_Extbase_Reflection_ObjectAccess::getGettableProperties($review));
         if ($changed) {
             $this->sendReviewMailAndLog($usedByCreate ? 'created' : 'changed', $review);
             if ($review->getAutoPush() && $review->getState()->getState() === Tx_Contentstage_Domain_Model_State::REVIEWED) {
                 $this->redirect('push', 'Content');
             }
         }
     }
     $this->redirect('compare', 'Content');
 }