ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Synchronize member assignments. More...
Public Member Functions | |
__construct (ilECSSetting $server) | |
Constructor. More... | |
getServer () | |
Get server. More... | |
getMid () | |
get current mid More... | |
getMappingSettings () | |
Get mapping settings. More... | |
checkAllocationActivation (ilECSSetting $server, $a_content_id) | |
Check if course allocation is activated for one recipient of the. More... | |
handleCreate (ilECSSetting $server, $a_content_id) | |
Handle create. More... | |
handleDelete (ilECSSetting $server, $a_content_id) | |
Handle delete. More... | |
handleUpdate (ilECSSetting $server, $a_content_id) | |
Handle update. More... | |
Protected Member Functions | |
doUpdate ($a_content_id, $course_member) | |
Perform update. More... | |
readAssignments ($course, $course_member) | |
Read assignments for all parallel groups. More... | |
refreshAssignmentStatus ($course_member, $obj_id, $sub_id, $assigned) | |
Refresh status of course member assignments. More... | |
lookupRole ($role_value, $a_obj_type) | |
Lookup local role by assignment. More... | |
Protected Attributes | |
$log | |
Private Member Functions | |
createMember ($a_person_id) | |
Create user account. More... | |
readCourseMember (ilECSSetting $server, $a_content_id) | |
Read course from ecs. More... | |
readCourse ($course_member) | |
Read course from ecs. More... | |
Private Attributes | |
$server = null | |
$mid = 0 | |
$mapping = null | |
Synchronize member assignments.
Definition at line 15 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
ilECSCmsCourseMemberCommandQueueHandler::__construct | ( | ilECSSetting | $server | ) |
Constructor.
Definition at line 30 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $GLOBALS, and $server.
ilECSCmsCourseMemberCommandQueueHandler::checkAllocationActivation | ( | ilECSSetting | $server, |
$a_content_id | |||
) |
Check if course allocation is activated for one recipient of the.
ilECSSetting | $server | |
type | $a_content_id |
Definition at line 69 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References ilECSParticipantSetting\getInstance(), ilECSNodeMappingSettings\getInstanceByServerMid(), getMappingSettings(), getMid(), and getServer().
Referenced by handleCreate(), and handleUpdate().
|
private |
Create user account.
type | $a_person_id |
Definition at line 452 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $query, $server, $users, $xml, ilAuthUtils\_getAuthModeName(), ilLDAPServer\_getFirstActiveServer(), AUTH_SHIBBOLETH, ilUserCreationContext\CONTEXT_LDAP, ilUserCreationContext\getInstance(), ilLDAPServer\getInstanceByServerId(), getMappingSettings(), and IL_LDAP_BIND_DEFAULT.
Referenced by refreshAssignmentStatus().
|
protected |
Perform update.
type | $a_content_id |
Definition at line 162 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References array, ilLogLevel\DEBUG, getMid(), getServer(), ilECSImport\lookupObjIdByContentId(), readAssignments(), readCourse(), and refreshAssignmentStatus().
Referenced by handleCreate(), and handleUpdate().
ilECSCmsCourseMemberCommandQueueHandler::getMappingSettings | ( | ) |
Get mapping settings.
Definition at line 59 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $mapping.
Referenced by checkAllocationActivation(), createMember(), lookupRole(), and refreshAssignmentStatus().
ilECSCmsCourseMemberCommandQueueHandler::getMid | ( | ) |
get current mid
Definition at line 49 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $mid.
Referenced by checkAllocationActivation(), doUpdate(), and readCourse().
ilECSCmsCourseMemberCommandQueueHandler::getServer | ( | ) |
Get server.
Definition at line 40 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $server.
Referenced by checkAllocationActivation(), doUpdate(), readCourse(), and refreshAssignmentStatus().
ilECSCmsCourseMemberCommandQueueHandler::handleCreate | ( | ilECSSetting | $server, |
$a_content_id | |||
) |
Handle create.
ilECSSetting | $server | |
type | $a_content_id |
Implements ilECSCommandQueueHandler.
Definition at line 103 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References checkAllocationActivation(), doUpdate(), and readCourseMember().
ilECSCmsCourseMemberCommandQueueHandler::handleDelete | ( | ilECSSetting | $server, |
$a_content_id | |||
) |
Handle delete.
ilECSSetting | $server | |
type | $a_content_id |
Implements ilECSCommandQueueHandler.
Definition at line 129 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
ilECSCmsCourseMemberCommandQueueHandler::handleUpdate | ( | ilECSSetting | $server, |
$a_content_id | |||
) |
Handle update.
ilECSSetting | $server | |
type | $a_content_id |
Implements ilECSCommandQueueHandler.
Definition at line 140 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References checkAllocationActivation(), doUpdate(), and readCourseMember().
|
protected |
Lookup local role by assignment.
string | $role_value |
Definition at line 410 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $name, array, getMappingSettings(), IL_CRS_ADMIN, IL_CRS_MEMBER, IL_CRS_TUTOR, IL_GRP_ADMIN, and IL_GRP_MEMBER.
Referenced by refreshAssignmentStatus().
|
protected |
Read assignments for all parallel groups.
type | $course | |
type | $course_member |
Definition at line 212 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References array, ilECSMappingUtils\PARALLEL_ALL_COURSES, ilECSMappingUtils\PARALLEL_GROUPS_IN_COURSE, and ilECSMappingUtils\PARALLEL_ONE_COURSE.
Referenced by doUpdate().
|
private |
Read course from ecs.
Definition at line 518 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References getMid(), getServer(), and ilECSImport\lookupEContentIdByContentId().
Referenced by doUpdate().
|
private |
Read course from ecs.
Definition at line 501 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
Referenced by handleCreate(), and handleUpdate().
|
protected |
Refresh status of course member assignments.
object | $course_member | |
int | $obj_id |
Definition at line 283 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $type, ilObjUser\_checkExternalAuthAccount(), ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObjUser\_lookupId(), ilObject\_lookupTitle(), ilObject\_lookupType(), array, createMember(), getMappingSettings(), ilECSMappingUtils\getRoleMappingInfo(), getServer(), ilECSCourseMemberAssignment\lookupAssignment(), lookupRole(), and ilECSCourseMemberAssignment\lookupUserIds().
Referenced by doUpdate().
|
protected |
Definition at line 20 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
|
private |
Definition at line 25 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
Referenced by getMappingSettings().
|
private |
Definition at line 23 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
Referenced by getMid().
|
private |
Definition at line 22 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
Referenced by __construct(), createMember(), and getServer().