diff options
author | Dirk Riestere | 2017-02-22 14:51:30 +0100 |
---|---|---|
committer | Dirk Riestere | 2017-02-22 14:51:30 +0100 |
commit | 7e47f9f5c5206312048df0a20c1082352a4fcb5d (patch) | |
tree | d995ff2380b37dc61a283b1eca82cdb04db583f8 /modules-available/locationinfo/inc/coursebackend.inc.php | |
parent | Merge branch 'location-info-panel' of git.openslx.org:openslx-ng/slx-admin in... (diff) | |
download | slx-admin-7e47f9f5c5206312048df0a20c1082352a4fcb5d.tar.gz slx-admin-7e47f9f5c5206312048df0a20c1082352a4fcb5d.tar.xz slx-admin-7e47f9f5c5206312048df0a20c1082352a4fcb5d.zip |
die klassen können jetzt ohne parameter erstellt werden, die url und die serverID wird jetzt in setCredentials gesetzt
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/coursebackend.inc.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend.inc.php b/modules-available/locationinfo/inc/coursebackend.inc.php index e10cb08b..e21cbac3 100644 --- a/modules-available/locationinfo/inc/coursebackend.inc.php +++ b/modules-available/locationinfo/inc/coursebackend.inc.php @@ -75,12 +75,6 @@ abstract class CourseBackend */ public abstract function getDisplayName(); - /** - * initializes the class. - * @param string $url adress of the server - * @param int $serverID ID of the server - */ - public abstract function __construct($url,$serverID); /** @@ -91,9 +85,12 @@ abstract class CourseBackend /** * uses json to setCredentials, the json must follow the form given in * getCredentials + * @param json $json jsonarray with the credentials + * @param string $url adress of the server + * @param int $serverID ID of the server * @returns void */ - public abstract function setCredentials($json); + public abstract function setCredentials($json, $url, $serverID); /** * @return int desired caching time of results, in seconds. 0 = no caching |