| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
 Collaboration diagram for ilECSCourseCreationHandler: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 23 of file class.ilECSCourseCreationHandler.php.
| ilECSCourseCreationHandler::__construct | ( | ilECSSetting | $server, | 
| int | $a_mid | ||
| ) | 
Definition at line 38 of file class.ilECSCourseCreationHandler.php.
References $DIC, $server, ilECSNodeMappingSettings\getInstanceByServerMid(), getMid(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().
 Here is the call graph for this function:
      
  | 
  protected | 
Add an url entry.
Definition at line 675 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_getAllReferences(), and ilObject\_lookupTitle().
Referenced by createCourseReference(), updateParallelCourses(), and updateParallelGroups().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Create course data from json.
Definition at line 620 of file class.ilECSCourseCreationHandler.php.
References ILIAS\Repository\logger(), and SYSTEM_USER_ID.
Referenced by doSync().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Create course reference.
Definition at line 635 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Create course reference objects.
Definition at line 235 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_lookupObjId(), ilObject\_lookupTitle(), getCreatedCourses(), ILIAS\Repository\logger(), and SYSTEM_USER_ID.
Referenced by doAttributeMapping().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  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().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Create parallel courses.
Definition at line 443 of file class.ilECSCourseCreationHandler.php.
References createParallelCourse().
Referenced by doSync().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Create parallel group.
Definition at line 531 of file class.ilECSCourseCreationHandler.php.
References ilGroupConstants\GRP_TYPE_CLOSED, setImported(), setObjectCreated(), and SYSTEM_USER_ID.
Referenced by createParallelGroups(), and updateParallelGroups().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
This create parallel groups.
Definition at line 520 of file class.ilECSCourseCreationHandler.php.
References createParallelGroup().
Referenced by doSync().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Sync attribute mapping.
Definition at line 150 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Handle all in one setting.
Definition at line 363 of file class.ilECSCourseCreationHandler.php.
References ilObject\_getAllReferences(), createCourseData(), createCourseReference(), createParallelCourses(), createParallelGroups(), getImportId(), handleCourseUrlUpdate(), ILIAS\Repository\logger(), 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilECSCourseCreationHandler::getCourseUrl | ( | ) | 
Get course url.
Definition at line 75 of file class.ilECSCourseCreationHandler.php.
References $course_url.
      
  | 
  protected | 
get created courses
Definition at line 99 of file class.ilECSCourseCreationHandler.php.
References $courses_created.
Referenced by createCourseReferenceObjects().
 Here is the caller graph for this function:
      
  | 
  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 584 of file class.ilECSCourseCreationHandler.php.
References ilECSImportManager\getInstance(), getMid(), and getServer().
Referenced by createParallelCourse(), doAttributeMapping(), doSync(), syncNodeToTop(), updateParallelCourses(), and updateParallelGroups().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilECSCourseCreationHandler::getMapping | ( | ) | 
Get mapping settings.
Definition at line 66 of file class.ilECSCourseCreationHandler.php.
References $mapping.
Referenced by doAttributeMapping(), and handle().
 Here is the caller graph for this function:| ilECSCourseCreationHandler::getMid | ( | ) | 
Get mid of course event.
Definition at line 107 of file class.ilECSCourseCreationHandler.php.
References $mid.
Referenced by __construct(), doAttributeMapping(), getImportId(), handleCourseUrlUpdate(), setImported(), syncCategory(), syncNodeToTop(), and syncParentContainer().
 Here is the caller graph for this function:| ilECSCourseCreationHandler::getServer | ( | ) | 
Get server settings.
Definition at line 57 of file class.ilECSCourseCreationHandler.php.
References $server.
Referenced by doAttributeMapping(), getImportId(), handleCourseUrlUpdate(), setImported(), syncCategory(), syncNodeToTop(), and syncParentContainer().
 Here is the caller graph for this function:| ilECSCourseCreationHandler::handle | ( | int | $a_content_id, | 
| $course | |||
| ) | 
Handle sync request.
| int | $a_content_id | ecs content id | 
Definition at line 116 of file class.ilECSCourseCreationHandler.php.
References ilObject\_lookupObjId(), ilObject\_lookupTitle(), doAttributeMapping(), doSync(), getMapping(), ILIAS\Repository\logger(), setObjectCreated(), and syncParentContainer().
 Here is the call graph for this function:
      
  | 
  protected | 
Update course url.
Definition at line 694 of file class.ilECSCourseCreationHandler.php.
References getMid(), getServer(), isObjectCreated(), and ILIAS\Repository\logger().
Referenced by doSync().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilECSCourseCreationHandler::isObjectCreated | ( | ) | 
Check if an object (course / group) has been created.
Definition at line 83 of file class.ilECSCourseCreationHandler.php.
References $object_created.
Referenced by handleCourseUrlUpdate().
 Here is the caller graph for this function:
      
  | 
  protected | 
Set new course object imported.
Definition at line 655 of file class.ilECSCourseCreationHandler.php.
References getMid(), getServer(), and ilECSImport\setSubId().
Referenced by createParallelCourse(), createParallelGroup(), and doSync().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilECSCourseCreationHandler::setObjectCreated | ( | bool | $a_status | ) | 
Set object created status.
Definition at line 91 of file class.ilECSCourseCreationHandler.php.
Referenced by createCourseReference(), createParallelCourse(), createParallelGroup(), and handle().
 Here is the caller graph for this function:
      
  | 
  protected | 
Sync category.
Definition at line 326 of file class.ilECSCourseCreationHandler.php.
References $data, getMid(), getServer(), ILIAS\Repository\lng(), ilECSImport\setMID(), and SYSTEM_USER_ID.
Referenced by syncNodeToTop().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Sync node to top.
Definition at line 276 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_getAllReferences(), getImportId(), getMid(), getServer(), ILIAS\Repository\logger(), ilECSCmsData\lookupCmsIds(), ilECSCmsData\lookupObjId(), and syncCategory().
 Here is the call graph for this function:
      
  | 
  protected | 
Sync parent container.
Definition at line 256 of file class.ilECSCourseCreationHandler.php.
References getMid(), getServer(), ILIAS\Repository\logger(), and ilECSCmsData\lookupFirstTreeOfNode().
Referenced by handle().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Update course data.
Definition at line 597 of file class.ilECSCourseCreationHandler.php.
References $ref_id, ilObject\_getAllReferences(), ilObjectFactory\getInstanceByRefId(), and ILIAS\Repository\logger().
Referenced by doSync().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Update parallel group data.
Definition at line 484 of file class.ilECSCourseCreationHandler.php.
References ilObject\_getAllReferences(), addUrlEntry(), createParallelCourse(), getImportId(), ilObjectFactory\getInstanceByObjId(), and ILIAS\Repository\logger().
Referenced by doSync().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Update parallel group data.
Definition at line 553 of file class.ilECSCourseCreationHandler.php.
References ilObject\_getAllReferences(), addUrlEntry(), createParallelGroup(), getImportId(), ilObjectFactory\getInstanceByObjId(), and ILIAS\Repository\logger().
Referenced by doSync().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 32 of file class.ilECSCourseCreationHandler.php.
Referenced by getCourseUrl().
      
  | 
  private | 
Definition at line 34 of file class.ilECSCourseCreationHandler.php.
Referenced by getCreatedCourses().
      
  | 
  private | 
Definition at line 26 of file class.ilECSCourseCreationHandler.php.
      
  | 
  private | 
Definition at line 25 of file class.ilECSCourseCreationHandler.php.
      
  | 
  private | 
Definition at line 31 of file class.ilECSCourseCreationHandler.php.
Referenced by getMapping().
      
  | 
  private | 
Definition at line 36 of file class.ilECSCourseCreationHandler.php.
Referenced by getMid().
      
  | 
  private | 
Definition at line 33 of file class.ilECSCourseCreationHandler.php.
Referenced by isObjectCreated().
      
  | 
  private | 
Definition at line 30 of file class.ilECSCourseCreationHandler.php.
Referenced by __construct(), and getServer().
      
  | 
  private | 
Definition at line 27 of file class.ilECSCourseCreationHandler.php.