コード例 #1
0
 /**
  * Deletes the resume of the applicant
  * @param int $applicationId ID of the Application
  */
 private function _deleteResume($applicationId)
 {
     $this->_authenticateResumeAccess();
     $jobApplication = new JobApplication();
     $jobApplication->setId($applicationId);
     // If resume details are not set, at default they become null
     try {
         $jobApplication->deleteResume();
         $objs['application'] = JobApplication::getJobApplication($applicationId);
         // No resume
         $objs['message'] = 'Resume deleted';
     } catch (Exception $e) {
         $objs['application'] = JobApplication::getJobApplication($applicationId);
         // still contains the resume
         $objs['message'] = 'Resume not deleted';
     }
     $path = '/templates/recruitment/viewApplicationDetails.php';
     $template = new TemplateMerger($objs, $path);
     $template->display();
 }