Added Reihungstest-chronjob -> sends info with Sancho mail

The job
-- checks if there are active studyplans which have no public placement tests assigned yet 
-- retrieves faculty and amount of free places for each public placement test date.

This information is then sent by email in Sancho design.
This commit is contained in:
Cris
2018-12-05 16:57:23 +01:00
parent 535275adb1
commit 41b55cf571
4 changed files with 394 additions and 0 deletions
+23
View File
@@ -81,4 +81,27 @@ class ReihungstestLib
return false;
}
/**
* Checks if there are active studyplans which have no public placement tests assigned yet.
* Only check studyplans that are
* - bachelor,
* - active,
* - set as online application
* - valid for 1st term
* @return type
*/
public function checkMissingReihungstest()
{
return $this->ci->ReihungstestModel->checkMissingReihungstest();
}
/** Gets amount of free places.
* Retrieves faculty and amount of free places for each public placement test date.
* @return array
*/
public function getFreePlaces()
{
return $this->ci->ReihungstestModel->getFreePlaces();
}
}