ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilLTIAppEventListener. More...
Static Public Member Functions | ||||||||||
static | handleEvent ($a_component, $a_event, $a_parameter) | |||||||||
Handle an event in a listener.
| ||||||||||
static | handleCronUpdate (ilDateTime $since) | |||||||||
static | handleOutcomeWithoutLP ($a_obj_id, $a_usr_id, $a_percentage) | |||||||||
Protected Member Functions | |
__construct () | |
ilLTIAppEventListener constructor. More... | |
handleUpdateStatus ($a_obj_id, $a_usr_id, $a_status, $a_percentage) | |
Handle update status. More... | |
doCronUpdate (ilDateTime $since) | |
isLTIAuthMode ($auth_mode) | |
tryOutcomeService ($resource, $ext_account, $a_status, $a_percentage) | |
try outcome service More... | |
Static Protected Member Functions | |
static | getInstance () |
Private Attributes | |
$logger = null | |
$connector = null | |
Static Private Attributes | |
static | $instance = null |
Class ilLTIAppEventListener.
Definition at line 7 of file class.ilLTIAppEventListener.php.
|
protected |
ilLTIAppEventListener constructor.
Definition at line 28 of file class.ilLTIAppEventListener.php.
References $DIC.
|
protected |
ilDateTime | $since |
ilDateTimeException |
Definition at line 85 of file class.ilLTIAppEventListener.php.
References $login, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_lookupId(), ilObject\_lookupObjId(), ilLPStatus\_lookupPercentage(), ilLPStatus\_lookupStatus(), and tryOutcomeService().
|
staticprotected |
|
static |
ilDateTime | $since |
ilDateTimeException |
Definition at line 194 of file class.ilLTIAppEventListener.php.
Referenced by ilLTICronOutcomeService\run().
|
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 168 of file class.ilLTIAppEventListener.php.
|
static |
Definition at line 202 of file class.ilLTIAppEventListener.php.
References $connector, $DIC, $user, ilObject\_getAllReferences(), ilObjUser\_lookupAuthMode(), ilObjUser\_lookupExternalAccount(), IMSGlobal\LTI\ToolProvider\ResourceLink\fromRecordId(), IMSGlobal\LTI\ToolProvider\User\fromResourceLink(), ilObjectLP\getInstance(), and ilLPObjSettings\LP_MODE_DEACTIVATED.
Referenced by ilSCORM2004StoreData\persistCMIData(), and ilObjSCORMTracking\storeJsApiCmi().
|
protected |
Handle update status.
Definition at line 51 of file class.ilLTIAppEventListener.php.
References ilObject\_getAllReferences(), ilObjUser\_lookupAuthMode(), ilObjUser\_lookupExternalAccount(), ilLogLevel\DEBUG, isLTIAuthMode(), and tryOutcomeService().
|
protected |
$a_usr_id |
Definition at line 121 of file class.ilLTIAppEventListener.php.
Referenced by handleUpdateStatus().
|
protected |
try outcome service
Definition at line 130 of file class.ilLTIAppEventListener.php.
References $user, IMSGlobal\LTI\ToolProvider\ResourceLink\fromRecordId(), IMSGlobal\LTI\ToolProvider\User\fromResourceLink(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_FAILED_NUM, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM.
Referenced by doCronUpdate(), and handleUpdateStatus().
|
private |
Definition at line 22 of file class.ilLTIAppEventListener.php.
Referenced by handleOutcomeWithoutLP().
|
staticprivate |
Definition at line 12 of file class.ilLTIAppEventListener.php.
|
private |
Definition at line 17 of file class.ilLTIAppEventListener.php.
Referenced by handleEvent().