diff options
author | Simon Rettberg | 2017-04-19 23:57:43 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-19 23:57:43 +0200 |
commit | df2518c0d6dde4fa621f880e098f9ce56067817d (patch) | |
tree | 8c622a196ce9fba1bb40e6e0b82add4825989e43 /modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php | |
parent | [locationinfo] Return untranslated tag of backend property if missing (diff) | |
download | slx-admin-df2518c0d6dde4fa621f880e098f9ce56067817d.tar.gz slx-admin-df2518c0d6dde4fa621f880e098f9ce56067817d.tar.xz slx-admin-df2518c0d6dde4fa621f880e098f9ce56067817d.zip |
[locationinfo] CourseBackend: Rename some methods to be more descriptive
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php index 77928b39..2f60249e 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php @@ -30,7 +30,7 @@ class CourseBackend_Davinci extends CourseBackend return $this->error === false; } - public function getCredentials() + public function getCredentialDefinitions() { return [ new BackendProperty('baseUrl', 'string') @@ -93,11 +93,11 @@ class CourseBackend_Davinci extends CourseBackend if ($return === false) { continue; } - $return = $this->toArray($return); + $return = $this->xmlStringToArray($return); if ($return === false) { continue; } - $lessons = $this->getAttributes($return, '/Lessons/Lesson'); + $lessons = $this->getArrayPath($return, '/Lessons/Lesson'); if ($lessons === false) { $this->error = "Cannot find /Lessons/Lesson in XML"; continue; |