"string","password"=>"string","option"=>$options]; return $credentials; } public function getDisplayName(){ return'Dummy with array'; } public function getCacheTime(){ return 0; } public function getRefreshTime(){ return 0; } 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); } } ?>