mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 08:52:21 +00:00
Bismeldestichtag: added method for getting next Meldestichtag, loading data only after tabulator is ready
This commit is contained in:
@@ -33,6 +33,23 @@ class Bismeldestichtag_model extends DB_Model
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Liefert nächstliegenden Bismeldestichtag.
|
||||
* @return object success or error
|
||||
*/
|
||||
public function getNextMeldestichtag()
|
||||
{
|
||||
$this->addSelect('meldestichtag');
|
||||
$this->addSelect('studiensemester_kurzbz');
|
||||
|
||||
$this->addOrder('meldestichtag', 'ASC');
|
||||
$this->addLimit(1);
|
||||
|
||||
return $this->loadWhere([
|
||||
'meldestichtag >= NOW()' => null
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prüft, ob Meldestichtag für ein bestimmtes Statusdatum und Studiensemester erreicht ist.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user