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';
67 include_once
'./Services/WebServices/ECS/classes/Connectors/class.ilECSEnrolmentStatus.php';
68 include_once
'./Services/WebServices/ECS/classes/Connectors/class.ilECSEnrolmentStatusConnector.php';
70 $status = $enrolment_con->getEnrolmentStatus($a_content_id);
71 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.print_r($status,TRUE));
72 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.$status->getPersonIdType());
73 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.$status->getPersonId());
74 switch($status->getPersonIdType())
78 $GLOBALS[
'ilLog']->write(__METHOD__.
': Handling status change to '.$status->getStatus().
' for user '.$id_arr[
'id']);
79 $this->
doUpdate($id_arr[
'id'],$status);
85 $GLOBALS[
'ilLog']->write(__METHOD__.
': not implemented yes: person id type: '.$status->getPersonIdType());
92 $GLOBALS[
'ilLog']->write(__METHOD__.
': Enrolment status change failed with messsage: '.$e->getMessage());
127 include_once
'./Services/WebServices/ECS/classes/class.ilECSImport.php';
129 $obj_id = end($obj_ids);
147 $GLOBALS[
'ilLog']->write(__METHOD__.
': Add desktop item: '.$a_usr_id.
' '.
$ref_id.
' '.$obj_id);
155 $GLOBALS[
'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' ...
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
__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.