ILIAS
Release_4_4_x_branch Revision 61816
|
Description of class. More...
Public Member Functions | |
__construct (ilECSSetting $server) | |
Constructor. | |
getServer () | |
Get server. | |
getMid () | |
get current mid | |
getMappingSettings () | |
Get mapping settings. | |
checkAllocationActivation (ilECSSetting $server, $a_content_id) | |
Check if course allocation is activated for one recipient of the. | |
handleCreate (ilECSSetting $server, $a_content_id) | |
Handle create. | |
handleDelete (ilECSSetting $server, $a_content_id) | |
Handle delete. | |
handleUpdate (ilECSSetting $server, $a_content_id) | |
Handle update. |
Protected Member Functions | |
doUpdate ($a_content_id, $course_member) | |
Perform update. | |
readAssignments ($course, $course_member) | |
Read assignments for all parallel groups. | |
refreshAssignmentStatus ($course_member, $obj_id, $sub_id, $assigned) | |
Refresh status of course member assignments. | |
lookupRole ($role_value) |
Private Member Functions | |
createMember ($a_person_id) | |
Create user account. | |
readCourseMember (ilECSSetting $server, $a_content_id) | |
Read course from ecs. | |
readCourse ($course_member) | |
Read course from ecs. |
Private Attributes | |
$server = null | |
$mid = 0 | |
$mapping = null |
Description of class.
Definition at line 15 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
ilECSCmsCourseMemberCommandQueueHandler::__construct | ( | ilECSSetting | $server | ) |
Constructor.
Definition at line 25 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $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 63 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $GLOBALS, ilECSParticipantSetting\getInstance(), ilECSNodeMappingSettings\getInstanceByServerMid(), getMappingSettings(), getMid(), and getServer().
Referenced by handleCreate(), and handleUpdate().
|
private |
Create user account.
type | $a_person_id |
Definition at line 423 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $query, $server, ilLDAPServer\_getFirstActiveServer(), ilLDAPServer\getInstanceByServerId(), and IL_LDAP_BIND_DEFAULT.
Referenced by refreshAssignmentStatus().
|
protected |
Perform update.
type | $a_content_id |
Definition at line 168 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $GLOBALS, $mid, getMid(), getServer(), ilECSImport\lookupObjIdByContentId(), readAssignments(), readCourse(), and refreshAssignmentStatus().
Referenced by handleCreate(), and handleUpdate().
ilECSCmsCourseMemberCommandQueueHandler::getMappingSettings | ( | ) |
Get mapping settings.
Definition at line 53 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $mapping.
Referenced by checkAllocationActivation(), and lookupRole().
ilECSCmsCourseMemberCommandQueueHandler::getMid | ( | ) |
get current mid
Definition at line 43 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $mid.
Referenced by checkAllocationActivation(), doUpdate(), and readCourse().
ilECSCmsCourseMemberCommandQueueHandler::getServer | ( | ) |
Get server.
Definition at line 34 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 101 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $GLOBALS, checkAllocationActivation(), doUpdate(), and readCourseMember().
ilECSCmsCourseMemberCommandQueueHandler::handleDelete | ( | ilECSSetting | $server, |
$a_content_id | |||
) |
Handle delete.
ilECSSetting | $server | |
type | $a_content_id |
Implements ilECSCommandQueueHandler.
Definition at line 131 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 142 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $GLOBALS, checkAllocationActivation(), doUpdate(), and readCourseMember().
|
protected |
Definition at line 398 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $GLOBALS, and getMappingSettings().
Referenced by refreshAssignmentStatus().
|
protected |
Read assignments for all parallel groups.
type | $course | |
type | $course_member |
Definition at line 216 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $GLOBALS, ilECSMappingUtils\PARALLEL_ALL_COURSES, ilECSMappingUtils\PARALLEL_GROUPS_IN_COURSE, ilECSMappingUtils\PARALLEL_ONE_COURSE, and ilECSMappingUtils\PARALLEL_UNDEFINED.
Referenced by doUpdate().
|
private |
Read course from ecs.
Definition at line 479 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References getMid(), getServer(), and ilECSImport\lookupEContentIdByContentId().
Referenced by doUpdate().
|
private |
Read course from ecs.
Definition at line 457 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 281 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
References $GLOBALS, $usr_id, ilObjUser\_checkExternalAuthAccount(), ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObjUser\_lookupId(), ilObject\_lookupTitle(), ilObject\_lookupType(), createMember(), ilECSMappingUtils\getRoleMappingInfo(), getServer(), ilECSCourseMemberAssignment\lookupAssignment(), ilECSSetting\lookupAuthMode(), lookupRole(), and ilECSCourseMemberAssignment\lookupUserIds().
Referenced by doUpdate().
|
private |
Definition at line 20 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
Referenced by getMappingSettings().
|
private |
Definition at line 18 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
Referenced by doUpdate(), and getMid().
|
private |
Definition at line 17 of file class.ilECSCmsCourseMemberCommandQueueHandler.php.
Referenced by __construct(), createMember(), and getServer().