diff options
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_ical.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/coursebackend/coursebackend_ical.inc.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_ical.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_ical.inc.php index 98dca1cb..f1791c4e 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_ical.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_ical.inc.php @@ -6,7 +6,7 @@ class CourseBackend_ICal extends ICalCourseBackend /** @var string room ID for testing connection */ private $testId; - public function setCredentialsInternal($data) + public function setCredentialsInternal(array $data): bool { if (empty($data['baseUrl'])) { $this->addError("No url is given", true); @@ -20,7 +20,7 @@ class CourseBackend_ICal extends ICalCourseBackend return true; } - public function getCredentialDefinitions() + public function getCredentialDefinitions(): array { return [ new BackendProperty('baseUrl', 'string'), @@ -33,7 +33,7 @@ class CourseBackend_ICal extends ICalCourseBackend ]; } - public function checkConnection() + public function checkConnection(): bool { if (!$this->isOK()) return false; @@ -42,18 +42,18 @@ class CourseBackend_ICal extends ICalCourseBackend return ($this->downloadIcal($this->testId) !== null); } - public function getCacheTime() + public function getCacheTime(): int { return 30 * 60; } - public function getRefreshTime() + public function getRefreshTime(): int { return 60 * 60; } - public function getDisplayName() + public function getDisplayName(): string { return "iCal"; } |