diff options
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; + } } |