Code Cleanups

This commit is contained in:
2024-05-31 22:47:04 +02:00
parent 837b371d9c
commit 492d5a0028
40 changed files with 3 additions and 249 deletions

View File

@ -1,9 +1,6 @@
<?php
namespace Bdp\Libs;
use Bdp\Modules\EventParticipants\Controllers\MainController;
use Bdp\Modules\EventParticipants\Models\EventGroup;
class CommonModel extends \stdClass {
protected string $_tablename;
@ -34,8 +31,4 @@ class CommonModel extends \stdClass {
$compare = date_diff($today, $obj_birthday);
return $compare->y;
}
public function get_group() : CommonModel {
return EventGroup::load_by_id(MainController::KOMPASS_EVENTS_GROUPS, $this->gruppe_id);
}
}