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';
70 include_once
'./Services/WebServices/ECS/classes/Connectors/class.ilECSEnrolmentStatus.php';
71 include_once
'./Services/WebServices/ECS/classes/Connectors/class.ilECSEnrolmentStatusConnector.php';
73 $status = $enrolment_con->getEnrolmentStatus($a_content_id);
74 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': ' . print_r($status,
true));
75 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': ' . $status->getPersonIdType());
76 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': ' . $status->getPersonId());
77 switch ($status->getPersonIdType()) {
80 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Handling status change to ' . $status->getStatus() .
' for user ' . $id_arr[
'id']);
81 $this->
doUpdate($id_arr[
'id'], $status);
87 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': not implemented yes: person id type: ' . $status->getPersonIdType());
91 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Enrolment status change failed with messsage: ' . $e->getMessage());
126 include_once
'./Services/WebServices/ECS/classes/class.ilECSImport.php';
128 $obj_id = end($obj_ids);
130 $ref_id = end($ref_ids);
144 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Add recommended content: ' . $a_usr_id .
' ' . $ref_id .
' ' . $obj_id);
154 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Remove recommended content: ' . $a_usr_id .
' ' . $ref_id .
' ' . $obj_id);
155 $this->recommended_content_manager->removeObjectRecommendation($a_usr_id, $ref_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
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
doUpdate($a_usr_id, ilECSEnrolmentStatus $status)
Perform update.
handleDelete(ilECSSetting $server, $a_content_id)
Handle delete.
Connector for course member ressource.
static lookupObjIdsByContentId($a_content_id)
handleCreate(ilECSSetting $server, $a_content_id)
Handle create.
Recommended content manager (business logic)
$recommended_content_manager