Beispiel #1
0
 /**
  * @param $applicationID
  */
 private function approveApplication($applicationID)
 {
     $applicationInfo = SJB_Applications::getBySID($applicationID);
     $jobseekerSID = $applicationInfo['jobseeker_id'];
     SJB_Applications::accept($applicationID);
     if (SJB_UserNotificationsManager::isUserNotifiedOnApplicationsApproval($jobseekerSID)) {
         SJB_Notifications::sendUserApplicationApproveOrRejectLetter($applicationID, 'approved');
     }
     $statisticSID = SJB_Statistics::getStatisticsByObjectSID($applicationID, 'apply');
     if ($statisticSID) {
         SJB_Statistics::updateStatistics($statisticSID, array('approve' => 1, 'reject' => 0));
     }
 }