ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
ECS Event Handler. More...
Public Member Functions | |
__construct (\ilLogger $logger, ilSetting $settings, ilRbacAdmin $rbac_admin) | |
Static Public Member Functions | |
static | handleEvent (string $a_component, string $a_event, array $a_parameter) |
Handle an event in a listener. More... | |
Protected Member Functions | |
handleNewAccountCreation (string $username) | |
Private Member Functions | |
initServer (int $a_usr_id) | |
Init server settings. More... | |
sendNotification (ilECSSetting $server, ilObjUser $user_obj) | |
send notification about new user accounts More... | |
handleMembership (ilObjUser $user) | |
Assign missing course/groups to new user accounts. More... | |
extendAccount (ilECSSetting $settings, ilObjUser $user) | |
Extend account. More... | |
updateEnrolmentStatus (int $a_obj_id, ilObjUser $user, string $a_status) | |
Update enrolment status. More... | |
Private Attributes | |
ilLogger | $logger |
ilSetting | $settings |
ilRbacAdmin | $rbac_admin |
ECS Event Handler.
Definition at line 25 of file class.ilECSAppEventListener.php.
ilECSAppEventListener::__construct | ( | \ilLogger | $logger, |
ilSetting | $settings, | ||
ilRbacAdmin | $rbac_admin | ||
) |
Definition at line 31 of file class.ilECSAppEventListener.php.
References $logger, $rbac_admin, $settings, ILIAS\Repository\logger(), and ILIAS\Repository\settings().
|
private |
Extend account.
Definition at line 310 of file class.ilECSAppEventListener.php.
References ilECSSetting\getDuration(), ilObjUser\getTimeLimitUntil(), IL_CAL_MONTH, IL_CAL_UNIX, ILIAS\Repository\logger(), ilObjUser\setTimeLimitUntil(), and ilObjUser\update().
Referenced by handleEvent().
|
static |
Handle an event in a listener.
string | $a_component | component, e.g. "components/ILIAS/Forum" or "components/ILIAS/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 47 of file class.ilECSAppEventListener.php.
References $DIC, ilObjUser\_lookupAuthMode(), extendAccount(), ilObjectFactory\getInstanceByObjId(), handleMembership(), handleNewAccountCreation(), initServer(), ILIAS\Repository\logger(), sendNotification(), ilECSEnrolmentStatus\STATUS_ACTIVE, ilECSEnrolmentStatus\STATUS_PENDING, ilECSEnrolmentStatus\STATUS_UNSUBSCRIBED, and updateEnrolmentStatus().
|
private |
Assign missing course/groups to new user accounts.
Definition at line 268 of file class.ilECSAppEventListener.php.
References Vendor\Package\$e, $ref_id, ilObject\_getAllReferences(), ilObject\_lookupType(), ilCourseConstants\CRS_MEMBER, ilLogLevel\ERROR, ilObjUser\getAuthMode(), ilObjUser\getExternalAccount(), ilObject\getId(), ilParticipants\getInstance(), ilECSNodeMappingSettings\getInstanceByServerMid(), ilParticipants\IL_GRP_MEMBER, ILIAS\Repository\logger(), and ilECSCourseMemberAssignment\lookupMissingAssignmentsOfUser().
Referenced by handleEvent().
|
protected |
Definition at line 227 of file class.ilECSAppEventListener.php.
References $server, $user_id, ilObjUser\_loginExists(), ilObjUser\_lookupExternalAccount(), ilECSParticipantSetting\getInstance(), ilECSSetting\getInstanceByServerId(), ilECSParticipantSetting\INCOMING_AUTH_TYPE_LOGIN_PAGE, ilECSParticipantSetting\INCOMING_AUTH_TYPE_SHIBBOLETH, ILIAS\Repository\logger(), and null.
Referenced by handleEvent().
|
private |
Init server settings.
Definition at line 187 of file class.ilECSAppEventListener.php.
References ilECSImportManager\getInstance(), and ilECSSetting\getInstanceByServerId().
Referenced by handleEvent().
|
private |
send notification about new user accounts
Definition at line 197 of file class.ilECSAppEventListener.php.
References $lang, ilMail\_getAutoGeneratedMessageString(), ilLanguageFactory\_getLanguage(), ANONYMOUS_USER_ID, ilObject\getId(), ilECSSetting\getServerId(), ilECSSetting\getUserRecipients(), and ilECSSetting\getUserRecipientsAsString().
Referenced by handleEvent().
|
private |
Update enrolment status.
Definition at line 326 of file class.ilECSAppEventListener.php.
References Vendor\Package\$e, ilObject\_lookupType(), ilObject\getId(), ilECSSetting\getInstanceByServerId(), ilECSEnrolmentStatus\ID_UID, ILIAS\Repository\logger(), and ILIAS\Repository\settings().
Referenced by handleEvent().
|
private |
Definition at line 27 of file class.ilECSAppEventListener.php.
Referenced by __construct().
|
private |
Definition at line 29 of file class.ilECSAppEventListener.php.
Referenced by __construct().
|
private |
Definition at line 28 of file class.ilECSAppEventListener.php.
Referenced by __construct().