/** * Read course from ecs * @return boolean */ private function readCourse($course_member) { try { include_once './Services/WebServices/ECS/classes/class.ilECSImport.php'; $ecs_id = ilECSImport::lookupECSId($this->getServer()->getServerId(), $this->getMid(), $course_member->courseID); include_once './Services/WebServices/ECS/classes/Course/class.ilECSCourseConnector.php'; $crs_reader = new ilECSCourseConnector($this->getServer()); return $crs_reader->getCourse($ecs_id); } catch (ilECSConnectorException $e) { throw $e; } }