summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc
diff options
context:
space:
mode:
authorJannik Schönartz2017-02-27 07:53:38 +0100
committerJannik Schönartz2017-02-27 07:53:38 +0100
commit52406c0dd2017baed38df39a0574f1e8bbd549b8 (patch)
tree2335acef3bfb593d43e8eac28c5700b8c02646ed /modules-available/locationinfo/inc
parentBugfixes (diff)
downloadslx-admin-52406c0dd2017baed38df39a0574f1e8bbd549b8.tar.gz
slx-admin-52406c0dd2017baed38df39a0574f1e8bbd549b8.tar.xz
slx-admin-52406c0dd2017baed38df39a0574f1e8bbd549b8.zip
Admin panel: New server GUI now using the backend types.
Diffstat (limited to 'modules-available/locationinfo/inc')
-rw-r--r--modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
new file mode 100644
index 00000000..6fa4f32f
--- /dev/null
+++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
@@ -0,0 +1,37 @@
+<?php
+class Coursebackend_Dummy extends CourseBackend {
+
+ private $location;
+ public $serverID;
+
+ function __construct($location, $serverID) {
+
+ }
+
+ public function setCredentials($json,$location,$serverID) {
+ }
+
+ public function getCredentials(){
+ $options = ["opt1", "opt2", "opt3", "opt4", "opt5", "opt6", "opt7", "opt8"];
+ $credentials = ["username" => "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){
+
+ }
+
+}
+?>