/**
  * @param bool $isCorrect
  */
 public function changePasswordAndRedirect($isCorrect)
 {
     $changePasswordFilePath = 'personal/' . CHANGE_PASSWORD_FILE;
     if (!$isCorrect) {
         $this->redirectForError($changePasswordFilePath, REPORT_PASSWORD_MISMATCH);
     }
     try {
         $this->entityInstance->update();
         $this->redirectToPath(CHANGE_PASSWORD_FILE);
     } catch (MySQLException $e) {
         $this->redirectForError($changePasswordFilePath, REPORT_PASSWORD_MISMATCH);
     }
 }
Exemple #2
0
 /**
  * @return Exam
  */
 public function update()
 {
     $this->validateSecretaries();
     return parent::update();
 }
Exemple #3
0
 /**
  * @return Exam
  */
 public function update()
 {
     $this->validateProfessors();
     return parent::update();
 }