mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 16:32:20 +00:00
WIP room planning in calendar
This commit is contained in:
@@ -16,7 +16,8 @@ class Stundenplan extends Auth_Controller
|
||||
parent::__construct([
|
||||
'index' => ['student/anrechnung_beantragen:r','user:r'], // TODO(chris): permissions?
|
||||
'Reservierungen' => ['student/anrechnung_beantragen:r','user:r'], // TODO(chris): permissions?
|
||||
'Stunden' => ['student/anrechnung_beantragen:r','user:r'] // TODO(chris): permissions?
|
||||
'Stunden' => ['student/anrechnung_beantragen:r','user:r'], // TODO(chris): permissions?
|
||||
'RoomInformation'=> ['student/anrechnung_beantragen:r','user:r'],
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -65,4 +66,14 @@ class Stundenplan extends Auth_Controller
|
||||
$this->outputJsonSuccess(getData($result));
|
||||
}
|
||||
|
||||
public function RoomInformation()
|
||||
{
|
||||
$this->load->model('ressource/Stundenplan_model', 'StundenplanModel');
|
||||
|
||||
$result = $this->StundenplanModel->getRoomDataOnDay('EDV_A2.06','2024-05-21');
|
||||
//echo($this->db->last_query());
|
||||
echo json_encode($result);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user