/** * @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); } }
/** * @return Exam */ public function update() { $this->validateSecretaries(); return parent::update(); }
/** * @return Exam */ public function update() { $this->validateProfessors(); return parent::update(); }