summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/coursebackend.inc.php
diff options
context:
space:
mode:
authorDirk Riestere2017-02-27 20:26:58 +0100
committerDirk Riestere2017-02-27 20:26:58 +0100
commit086ba0ed7a0af637bacc7f01ab4b45e0156d388f (patch)
tree32e11c360f90f5af9fd03c3342dc256c945e20f9 /modules-available/locationinfo/inc/coursebackend.inc.php
parentBugfixes (diff)
downloadslx-admin-086ba0ed7a0af637bacc7f01ab4b45e0156d388f.tar.gz
slx-admin-086ba0ed7a0af637bacc7f01ab4b45e0156d388f.tar.xz
slx-admin-086ba0ed7a0af637bacc7f01ab4b45e0156d388f.zip
Bugfixes and Errorcode implementation
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend.inc.php')
-rw-r--r--modules-available/locationinfo/inc/coursebackend.inc.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend.inc.php b/modules-available/locationinfo/inc/coursebackend.inc.php
index 47eb73f4..49448cca 100644
--- a/modules-available/locationinfo/inc/coursebackend.inc.php
+++ b/modules-available/locationinfo/inc/coursebackend.inc.php
@@ -12,10 +12,14 @@ abstract class CourseBackend
/**
* @var array list of known backends
+ * $error boolean true if there was an error
+ * $errormsg string with the error message
*/
private static $backendTypes = false;
+ public $error;
+ public $errormsg;
- /**
+ /**
* Load all known backend types. This is done
* by including *.inc.php from inc/coursebackend/.
*/
@@ -161,5 +165,15 @@ abstract class CourseBackend
}
return $result[$roomID];
}
+
+ /**
+ * @return false if there was no error string with error message if there was one
+ */
+ public final function getError(){
+ if($this->error){
+ return $this->errormsg;
+ }
+ return false;
+ }
}