ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
ECS Event Handler. More...
Static Public Member Functions | |
static | handleEvent ($a_component, $a_event, $a_parameter) |
Handle an event in a listener. More... | |
Static Protected Member Functions | |
static | initServer ($a_usr_id) |
Init server settings. More... | |
static | _sendNotification (ilECSSetting $server, ilObjUser $user_obj) |
send notification about new user accounts More... | |
static | handleMembership (ilObjUser $user) |
Assign missing course/groups to new user accounts. More... | |
static | extendAccount (ilECSSetting $settings, ilObjUser $user) |
Extend account. More... | |
static | updateEnrolmentStatus ($a_obj_id, ilObjUser $user, $a_status) |
Update enrolment status. More... | |
|
staticprotected |
send notification about new user accounts
protected
Definition at line 194 of file class.ilECSAppEventListener.php.
References $lang, ilMail\_getAutoGeneratedMessageString(), ilLanguageFactory\_getLanguage(), ilObject\getId(), ilECSSetting\getServerId(), ilECSSetting\getUserRecipients(), and ilECSSetting\getUserRecipientsAsString().
|
staticprotected |
Extend account.
ilECSSetting | $server | |
ilObjUser | $user |
Definition at line 281 of file class.ilECSAppEventListener.php.
References $end, $GLOBALS, ilECSSetting\getDuration(), ilObjUser\getTimeLimitUntil(), IL_CAL_MONTH, IL_CAL_UNIX, ilObjUser\setTimeLimitUntil(), and ilObject\update().
|
static |
Handle an event in a listener.
string | $a_component | component, e.g. "Modules/Forum" or "Services/User" |
string | $a_event | event e.g. "createUser", "updateUser", "deleteUser", ... |
array | $a_parameter | parameter array (assoc), array("name" => ..., "phone_office" => ...) |
Implements ilAppEventListener.
Definition at line 44 of file class.ilECSAppEventListener.php.
References $DIC, $GLOBALS, $ilLog, $log, $user, ilObjUser\_lookupAuthMode(), ilObjectFactory\getInstanceByObjId(), ilECSEnrolmentStatus\STATUS_ACTIVE, ilECSEnrolmentStatus\STATUS_PENDING, and ilECSEnrolmentStatus\STATUS_UNSUBSCRIBED.
|
staticprotected |
Assign missing course/groups to new user accounts.
ilObjUser | $user |
Definition at line 234 of file class.ilECSAppEventListener.php.
References $GLOBALS, $log, ilObject\_getAllReferences(), ilObject\_lookupType(), ilCourseConstants\CRS_MEMBER, ilLogLevel\ERROR, ilObjUser\getAuthMode(), ilObjUser\getExternalAccount(), ilObject\getId(), ilParticipants\getInstance(), ilECSNodeMappingSettings\getInstanceByServerMid(), IL_GRP_MEMBER, and ilECSCourseMemberAssignment\lookupMissingAssignmentsOfUser().
|
staticprotected |
Init server settings.
type | $a_usr_id |
Definition at line 178 of file class.ilECSAppEventListener.php.
References ilECSSetting\getInstanceByServerId(), and ilECSImport\lookupServerId().
|
staticprotected |
Update enrolment status.
type | $a_obj_id | |
ilObjUser | $user | |
type | $a_status |
Definition at line 301 of file class.ilECSAppEventListener.php.
References $GLOBALS, ilObject\_lookupType(), ilECSRemoteUser\factory(), ilObject\getId(), ilECSSetting\getInstanceByServerId(), and ilECSEnrolmentStatus\ID_UID.