From df2518c0d6dde4fa621f880e098f9ce56067817d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 19 Apr 2017 23:57:43 +0200 Subject: [locationinfo] CourseBackend: Rename some methods to be more descriptive --- .../locationinfo/inc/coursebackend/coursebackend_davinci.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php') 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; -- cgit v1.2.3-55-g7522