5 include_once
'./Services/WebServices/ECS/interfaces/interface.ilECSCommandQueueHandler.php';
6 include_once
'./Services/WebServices/ECS/classes/class.ilECSSetting.php';
7 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
56 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseConnector.php';
58 $details = $crs_reader->getCourse($a_content_id,
true);
59 $this->mid = $details->getMySender();
62 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
64 if(!$part->isImportEnabled())
66 $GLOBALS[
'ilLog']->write(__METHOD__.
': Import disabled for mid '.$this->getMid());
70 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
75 $enabled = $gl_settings->isCourseAllocationEnabled();
78 $GLOBALS[
'ilLog']->write(__METHOD__.
': Course allocation disabled for '.$this->getMid());
84 $GLOBALS[
'ilLog']->write(__METHOD__.
': Reading course details failed with message '. $e->getMessage());
97 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
98 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
99 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseConnector.php';
107 $course = $this->
readCourse($server,$a_content_id);
108 $GLOBALS[
'ilLog']->write(__METHOD__.
': '. print_r($course,
true));
109 $this->
doUpdate($a_content_id, $course);
114 $GLOBALS[
'ilLog']->write(__METHOD__.
': Course creation failed with mesage ' . $e->getMessage());
145 $course = $this->
readCourse($server,$a_content_id);
146 $this->
doUpdate($a_content_id, $course);
151 $GLOBALS[
'ilLog']->write(__METHOD__.
': Course creation failed with mesage ' . $e->getMessage());
163 protected function doUpdate($a_content_id, $course)
165 $GLOBALS[
'ilLog']->write(__METHOD__.
': Starting course creation/update');
167 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseCreationHandler.php';
169 $creation_handler->handle($a_content_id, $course);
181 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseConnector.php';
183 return $crs_reader->getCourse($a_content_id,$a_details);