diff options
author | Dirk Riestere | 2017-02-27 20:26:58 +0100 |
---|---|---|
committer | Dirk Riestere | 2017-02-27 20:26:58 +0100 |
commit | 086ba0ed7a0af637bacc7f01ab4b45e0156d388f (patch) | |
tree | 32e11c360f90f5af9fd03c3342dc256c945e20f9 /modules-available/locationinfo/inc/coursebackend.inc.php | |
parent | Bugfixes (diff) | |
download | slx-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.php | 16 |
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; + } } |