From 737e8fa01022a20b4ee3fb6a43c5a83fde53963b Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Tue, 28 Feb 2017 22:49:28 +0100 Subject: Dummy modification --- .../inc/coursebackend/coursebackend_dummy.inc.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'modules-available/locationinfo/inc') diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php index 6fa4f32f..64cf29fd 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php @@ -30,7 +30,20 @@ class Coursebackend_Dummy extends CourseBackend { } public function fetchSchedulesInternal($roomId){ - + $a = array(); + foreach ($roomId as $id) { + $x['id'] = $id; + $calendar['title'] = "test exam"; + $calendar['start'] = "2017-February-20 10:00:00"; + $calendar['end'] = "2017-February-20 12:00:00"; + $calarray = array(); + $calarray[] = $calendar; + $x['calendar'] = $calarray; + $a[] = $x; + } + + + return json_encode($a, true); } } -- cgit v1.2.3-55-g7522