mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 23:42:17 +00:00
New function getNextPlacementtestDate
This commit is contained in:
@@ -473,11 +473,30 @@ class Reihungstest_model extends DB_Model
|
||||
return $this->execQuery($query, array($reihungstest_id));
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the date of the next placement test to the given degree program
|
||||
* @param integer $studiengang_kz Kennzahl of degree program to load the next placement test date
|
||||
* @return string Returns date of the next placement test
|
||||
*/
|
||||
public function getNextPlacementtestDate($studiengang_kz)
|
||||
{
|
||||
$query = '
|
||||
SELECT *
|
||||
FROM PUBLIC.tbl_reihungstest
|
||||
WHERE studiengang_kz = ?
|
||||
AND datum > now()
|
||||
ORDER BY datum ASC
|
||||
LIMIT 1
|
||||
';
|
||||
|
||||
return $this->execQuery($query, array($studiengang_kz));
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads all placement tests of the given day and optional degree program
|
||||
* @param string $date Date of the tests to be loaded (YYYY-MM-DD)
|
||||
* @param integer $studiengang_kz Optional. Kennzahl of degree program to load
|
||||
* @return array Returns object array with data of applicants.
|
||||
* @return array Returns object array with data of placement tests
|
||||
*/
|
||||
public function getTestsOnDate($date, $studiengang_kz = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user