From 7e47f9f5c5206312048df0a20c1082352a4fcb5d Mon Sep 17 00:00:00 2001 From: Dirk Riestere Date: Wed, 22 Feb 2017 14:51:30 +0100 Subject: die klassen können jetzt ohne parameter erstellt werden, die url und die serverID wird jetzt in setCredentials gesetzt --- .../inc/coursebackend/coursebackend_hisinone.inc.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php') diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php index 1922f9e5..01b476fb 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php @@ -8,16 +8,14 @@ class CourseBackend_HisInOne extends CourseBackend public $serverID; - //Constructs the HisInOneClient - function __construct($location, $serverID) { - $this->location = $location."/qisserver/services2/CourseService"; - $this->serverID = $serverID; - } + // - public function setCredentials($json) { + public function setCredentials($json,$location,$serverID) { $data = json_decode($json, TRUE); $this->password = $data['password']; $this->username = $data['username']."/t".$data['role']; + $this->location = $location."/qisserver/services2/CourseService"; + $this->serverID = $serverID; } //Cache the timetables for 30 minutes ttables older than 60 are not refreshed -- cgit v1.2.3-55-g7522