ILIAS
trunk Revision v11.0_alpha-1861-g09f3d197f78
|
Public Member Functions | |
__construct (ilECSSetting $server, int $a_mid) | |
getServer () | |
Get server settings. More... | |
getMapping () | |
Get mapping settings. More... | |
getCourseUrl () | |
Get course url. More... | |
isObjectCreated () | |
Check if an object (course / group) has been created. More... | |
setObjectCreated (bool $a_status) | |
Set object created status. More... | |
getMid () | |
Get mid of course event. More... | |
handle (int $a_content_id, $course) | |
Handle sync request. More... | |
Protected Member Functions | |
getCreatedCourses () | |
get created courses More... | |
doAttributeMapping ($a_content_id, $course) | |
Sync attribute mapping. More... | |
createCourseReferenceObjects ($a_parent_ref_id) | |
Create course reference objects. More... | |
syncParentContainer ($a_content_id, $course) | |
Sync parent container. More... | |
syncNodeToTop ($tree_id, $cms_id) | |
Sync node to top. More... | |
syncCategory ($tobj_id, $parent_ref_id) | |
Sync category. More... | |
doSync ($a_content_id, $course, $a_parent_obj_id) | |
Handle all in one setting. More... | |
createParallelCourses (int $a_content_id, $course, $parent_ref) | |
Create parallel courses. More... | |
createParallelCourse ($a_content_id, $course, $group, $parent_ref) | |
Create parallel course. More... | |
updateParallelCourses ($a_content_id, $course, $parent_obj) | |
Update parallel group data. More... | |
createParallelGroups ($a_content_id, $course, $parent_ref) | |
This create parallel groups. More... | |
createParallelGroup ($a_content_id, $course, $group, $parent_ref) | |
Create parallel group. More... | |
updateParallelGroups ($a_content_id, $course, int $parent_obj) | |
Update parallel group data. More... | |
getImportId (int $a_content_id, ?string $a_sub_id=null) | |
Get import id of remote course Return 0 if object isn't imported. More... | |
updateCourseData ($course, $obj_id) | |
Update course data. More... | |
createCourseData ($course) | |
Create course data from json. More... | |
createCourseReference (ilObjCourse $crs, int $a_parent_obj_id) | |
Create course reference. More... | |
setImported (int $a_content_id, $object, $a_ecs_id=0, $a_sub_id=null) | |
Set new course object imported. More... | |
addUrlEntry (int $a_obj_id) | |
Add an url entry. More... | |
handleCourseUrlUpdate () | |
Update course url. More... | |
Private Attributes | |
ilLogger | $logger |
ilLanguage | $lng |
ilTree | $tree |
ilECSSetting | $server |
ilECSNodeMappingSettings | $mapping |
ilECSCourseUrl | $course_url = null |
bool | $object_created = false |
array | $courses_created = array() |
int | $mid |
Definition at line 24 of file class.ilECSCourseCreationHandler.php.
ilECSCourseCreationHandler::__construct | ( | ilECSSetting | $server, |
int | $a_mid | ||
) |
Definition at line 39 of file class.ilECSCourseCreationHandler.php.
References $DIC, $server, ilECSNodeMappingSettings\getInstanceByServerMid(), getMid(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), and ILIAS\UI\examples\Progress\Bar\server().
|
protected |
Add an url entry.
Definition at line 671 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_getAllReferences(), and ilObject\_lookupTitle().
Referenced by createCourseReference(), updateParallelCourses(), and updateParallelGroups().
|
protected |
Create course data from json.
Definition at line 616 of file class.ilECSCourseCreationHandler.php.
References ILIAS\Repository\logger(), and SYSTEM_USER_ID.
Referenced by doSync().
|
protected |
Create course reference.
Definition at line 631 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_getAllReferences(), addUrlEntry(), ilObject\createReference(), ilObject\getId(), ilObject\getRefId(), ilContainer\putInTree(), setObjectCreated(), and ilObject\setPermissions().
Referenced by createParallelCourse(), and doSync().
|
protected |
Create course reference objects.
Definition at line 236 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_lookupObjId(), ilObject\_lookupTitle(), getCreatedCourses(), ILIAS\Repository\logger(), and SYSTEM_USER_ID.
Referenced by doAttributeMapping().
|
protected |
Create parallel course.
Definition at line 454 of file class.ilECSCourseCreationHandler.php.
References ilObject\_lookupObjId(), createCourseReference(), getImportId(), ILIAS\Repository\logger(), setImported(), setObjectCreated(), and SYSTEM_USER_ID.
Referenced by createParallelCourses(), and updateParallelCourses().
|
protected |
Create parallel courses.
Definition at line 443 of file class.ilECSCourseCreationHandler.php.
References createParallelCourse().
Referenced by doSync().
|
protected |
Create parallel group.
Definition at line 529 of file class.ilECSCourseCreationHandler.php.
References ilGroupConstants\GRP_TYPE_CLOSED, setImported(), setObjectCreated(), and SYSTEM_USER_ID.
Referenced by createParallelGroups(), and updateParallelGroups().
|
protected |
This create parallel groups.
Definition at line 518 of file class.ilECSCourseCreationHandler.php.
References createParallelGroup().
Referenced by doSync().
|
protected |
Sync attribute mapping.
Definition at line 151 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_getAllReferences(), ilObject\_lookupObjId(), createCourseReferenceObjects(), ilLogLevel\DEBUG, ilECSCourseMappingRule\doMappings(), doSync(), getImportId(), getMapping(), getMid(), ilECSCourseMappingRule\getRuleRefIds(), getServer(), ilECSCourseMappingRule\isMatching(), and ILIAS\Repository\logger().
Referenced by handle().
|
protected |
Handle all in one setting.
Definition at line 364 of file class.ilECSCourseCreationHandler.php.
References ilObject\_getAllReferences(), createCourseData(), createCourseReference(), createParallelCourses(), createParallelGroups(), getImportId(), handleCourseUrlUpdate(), ILIAS\Repository\logger(), null, ilECSMappingUtils\PARALLEL_ALL_COURSES, ilECSMappingUtils\PARALLEL_COURSES_FOR_LECTURERS, ilECSMappingUtils\PARALLEL_GROUPS_IN_COURSE, ilECSMappingUtils\PARALLEL_ONE_COURSE, setImported(), updateCourseData(), updateParallelCourses(), and updateParallelGroups().
Referenced by doAttributeMapping(), and handle().
ilECSCourseCreationHandler::getCourseUrl | ( | ) |
Get course url.
Definition at line 76 of file class.ilECSCourseCreationHandler.php.
References $course_url.
|
protected |
get created courses
Definition at line 100 of file class.ilECSCourseCreationHandler.php.
References $courses_created.
Referenced by createCourseReferenceObjects().
|
protected |
Get import id of remote course Return 0 if object isn't imported.
Searches for the (hopefully) unique content id of an imported object
Definition at line 580 of file class.ilECSCourseCreationHandler.php.
References ilECSImportManager\getInstance(), getMid(), and getServer().
Referenced by createParallelCourse(), doAttributeMapping(), doSync(), syncNodeToTop(), updateParallelCourses(), and updateParallelGroups().
ilECSCourseCreationHandler::getMapping | ( | ) |
Get mapping settings.
Definition at line 67 of file class.ilECSCourseCreationHandler.php.
References $mapping.
Referenced by doAttributeMapping(), and handle().
ilECSCourseCreationHandler::getMid | ( | ) |
Get mid of course event.
Definition at line 108 of file class.ilECSCourseCreationHandler.php.
References $mid.
Referenced by __construct(), doAttributeMapping(), getImportId(), handleCourseUrlUpdate(), setImported(), syncCategory(), syncNodeToTop(), and syncParentContainer().
ilECSCourseCreationHandler::getServer | ( | ) |
Get server settings.
Definition at line 58 of file class.ilECSCourseCreationHandler.php.
References $server.
Referenced by doAttributeMapping(), getImportId(), handleCourseUrlUpdate(), setImported(), syncCategory(), syncNodeToTop(), and syncParentContainer().
ilECSCourseCreationHandler::handle | ( | int | $a_content_id, |
$course | |||
) |
Handle sync request.
int | $a_content_id | ecs content id |
Definition at line 117 of file class.ilECSCourseCreationHandler.php.
References ilObject\_lookupObjId(), ilObject\_lookupTitle(), doAttributeMapping(), doSync(), getMapping(), ILIAS\Repository\logger(), setObjectCreated(), and syncParentContainer().
|
protected |
Update course url.
Definition at line 690 of file class.ilECSCourseCreationHandler.php.
References getMid(), getServer(), isObjectCreated(), and ILIAS\Repository\logger().
Referenced by doSync().
ilECSCourseCreationHandler::isObjectCreated | ( | ) |
Check if an object (course / group) has been created.
Definition at line 84 of file class.ilECSCourseCreationHandler.php.
References $object_created.
Referenced by handleCourseUrlUpdate().
|
protected |
Set new course object imported.
Definition at line 651 of file class.ilECSCourseCreationHandler.php.
References getMid(), getServer(), and ilECSImport\setSubId().
Referenced by createParallelCourse(), createParallelGroup(), and doSync().
ilECSCourseCreationHandler::setObjectCreated | ( | bool | $a_status | ) |
Set object created status.
Definition at line 92 of file class.ilECSCourseCreationHandler.php.
Referenced by createCourseReference(), createParallelCourse(), createParallelGroup(), and handle().
|
protected |
Sync category.
Definition at line 327 of file class.ilECSCourseCreationHandler.php.
References $data, getMid(), getServer(), ILIAS\Repository\lng(), ilECSImport\setMID(), and SYSTEM_USER_ID.
Referenced by syncNodeToTop().
|
protected |
Sync node to top.
Definition at line 277 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_getAllReferences(), getImportId(), getMid(), getServer(), ILIAS\Repository\logger(), ilECSCmsData\lookupCmsIds(), ilECSCmsData\lookupObjId(), and syncCategory().
|
protected |
Sync parent container.
Definition at line 257 of file class.ilECSCourseCreationHandler.php.
References getMid(), getServer(), ILIAS\Repository\logger(), and ilECSCmsData\lookupFirstTreeOfNode().
Referenced by handle().
|
protected |
Update course data.
Definition at line 593 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_getAllReferences(), ilObjectFactory\getInstanceByRefId(), and ILIAS\Repository\logger().
Referenced by doSync().
|
protected |
Update parallel group data.
Definition at line 482 of file class.ilECSCourseCreationHandler.php.
References ilObject\_getAllReferences(), addUrlEntry(), createParallelCourse(), getImportId(), ilObjectFactory\getInstanceByObjId(), and ILIAS\Repository\logger().
Referenced by doSync().
|
protected |
Update parallel group data.
Definition at line 549 of file class.ilECSCourseCreationHandler.php.
References ilObject\_getAllReferences(), addUrlEntry(), createParallelGroup(), getImportId(), ilObjectFactory\getInstanceByObjId(), and ILIAS\Repository\logger().
Referenced by doSync().
|
private |
Definition at line 33 of file class.ilECSCourseCreationHandler.php.
Referenced by getCourseUrl().
|
private |
Definition at line 35 of file class.ilECSCourseCreationHandler.php.
Referenced by getCreatedCourses().
|
private |
Definition at line 27 of file class.ilECSCourseCreationHandler.php.
|
private |
Definition at line 26 of file class.ilECSCourseCreationHandler.php.
|
private |
Definition at line 32 of file class.ilECSCourseCreationHandler.php.
Referenced by getMapping().
|
private |
Definition at line 37 of file class.ilECSCourseCreationHandler.php.
Referenced by getMid().
|
private |
Definition at line 34 of file class.ilECSCourseCreationHandler.php.
Referenced by isObjectCreated().
|
private |
Definition at line 31 of file class.ilECSCourseCreationHandler.php.
Referenced by __construct(), and getServer().
|
private |
Definition at line 28 of file class.ilECSCourseCreationHandler.php.