mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-19 21:19:29 +00:00
28 lines
486 B
PHP
28 lines
486 B
PHP
<?php
|
|
class Kalender_model extends DB_Model
|
|
{
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'lehre.tbl_kalender';
|
|
$this->pk = 'kalender_id';
|
|
|
|
$this->load->helper('hlp_common');
|
|
}
|
|
|
|
public function generateUniqueGroupId()
|
|
{
|
|
while (true) {
|
|
$uniqueGroupId = generateUUID();
|
|
$result = $this->loadWhere(['eindeutige_gruppen_id' => $uniqueGroupId]);
|
|
if (!hasData($result)) {
|
|
return $uniqueGroupId;
|
|
}
|
|
}
|
|
}
|
|
}
|