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';
65 include_once
'./Services/WebServices/ECS/classes/Connectors/class.ilECSEnrolmentStatus.php';
66 include_once
'./Services/WebServices/ECS/classes/Connectors/class.ilECSEnrolmentStatusConnector.php';
68 $status = $enrolment_con->getEnrolmentStatus($a_content_id);
69 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': ' . print_r($status,
true));
70 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': ' . $status->getPersonIdType());
71 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': ' . $status->getPersonId());
72 switch ($status->getPersonIdType()) {
75 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Handling status change to ' . $status->getStatus() .
' for user ' . $id_arr[
'id']);
76 $this->
doUpdate($id_arr[
'id'], $status);
82 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': not implemented yes: person id type: ' . $status->getPersonIdType());
86 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Enrolment status change failed with messsage: ' . $e->getMessage());
121 include_once
'./Services/WebServices/ECS/classes/class.ilECSImport.php';
123 $obj_id = end($obj_ids);
125 $ref_id = end($ref_ids);
139 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Add desktop item: ' . $a_usr_id .
' ' . $ref_id .
' ' . $obj_id);
147 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Remove desktop item: ' . $a_usr_id .
' ' . $ref_id .
' ' . $obj_id);
checkAllocationActivation(ilECSSetting $server, $a_content_id)
Check if course allocation is activated for one recipient of the.
const STATUS_UNSUBSCRIBED
static parseImportId($a_import_id)
Parse an ilias import id Typically of type il_[IL_INST_ID]_[OBJ_TYPE]_[OBJ_ID] returns array( 'orig' ...
__construct(ilECSSetting $server)
Constructor.
Interface for all command queue handler classes.
static _getAllReferences($a_id)
get all reference ids of object
handleUpdate(ilECSSetting $server, $a_content_id)
Handle update.
const STATUS_ACCOUNT_DEACTIVATED
doUpdate($a_usr_id, ilECSEnrolmentStatus $status)
Perform update.
static _dropDesktopItem($a_usr_id, $a_item_id, $a_type)
drop an item from user's personal desktop
static _lookupType($a_id, $a_reference=false)
lookup object type
handleDelete(ilECSSetting $server, $a_content_id)
Handle delete.
static _addDesktopItem($a_usr_id, $a_item_id, $a_type, $a_par="")
add an item to user's personal desktop
Connector for course member ressource.
static lookupObjIdsByContentId($a_content_id)
handleCreate(ilECSSetting $server, $a_content_id)
Handle create.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.