summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
diff options
context:
space:
mode:
authorJannik Schönartz2017-03-17 06:10:28 +0100
committerJannik Schönartz2017-03-17 06:10:28 +0100
commitd2d52eaa1ed8ac2007c1f710cee74823f080de6d (patch)
tree1dec30739e49d55b54be6e1126eaa12e8ec12985 /modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
parentLocationinfo: Reformat code. (diff)
downloadslx-admin-d2d52eaa1ed8ac2007c1f710cee74823f080de6d.tar.gz
slx-admin-d2d52eaa1ed8ac2007c1f710cee74823f080de6d.tar.xz
slx-admin-d2d52eaa1ed8ac2007c1f710cee74823f080de6d.zip
Rework of the Server List. Many Bugfixes (see Mail).
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php')
-rw-r--r--modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
index 3dd0f7aa..e6ba0fe8 100644
--- a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
+++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
@@ -4,7 +4,7 @@ class Coursebackend_Dummy extends CourseBackend {
public function setCredentials($json,$location,$serverID) {
$x = $json;
- $this->pw = $x['password'];
+ $this->pw = $x['password_str'];
if ($this->pw == "mfg") {
$this->error = false;
@@ -29,7 +29,7 @@ class Coursebackend_Dummy extends CourseBackend {
public function getCredentials(){
$options = ["opt1", "opt2", "opt3", "opt4", "opt5", "opt6", "opt7", "opt8"];
- $credentials = ["username" => "string","password"=>"string","option"=>$options];
+ $credentials = ["username" => ["string", "This is a helptext.", false],"password_str"=>["string", "SOME SECRET PW U WILL NEVER KNOW!", true],"password_int"=>["int", "INT PW", true],"option"=>[$options, "OMG WHAT THE", false], "CheckTheBox" => ["bool", "Test with a cb", false]];
return $credentials;
}