ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Class ilLTIAppEventListener. More...
Static Public Member Functions | ||||||||||
static | handleEvent (string $a_component, string $a_event, array $a_parameter) | |||||||||
Handle an event in a listener.
| ||||||||||
static | handleCronUpdate (ilDateTime $since) | |||||||||
static | handleOutcomeWithoutLP (int $a_obj_id, int $a_usr_id, ?float $a_percentage) | |||||||||
static | handleEvent (string $a_component, string $a_event, array $a_parameter) | |||||||||
Handle an event in a listener. More... | ||||||||||
Protected Member Functions | |
__construct () | |
ilLTIAppEventListener constructor. More... | |
handleUpdateStatus (int $a_obj_id, int $a_usr_id, int $a_status, int $a_percentage) | |
Handle update status. More... | |
doCronUpdate (ilDateTime $since) | |
definePercentageByObjectId (int|null $status, string $obj_id, int|null $percentage) | |
isLTIAuthMode (string $auth_mode) | |
tryOutcomeService (int $resource, string $ext_account, int $a_status, int $a_percentage) | |
try outcome service More... | |
Static Protected Member Functions | |
static | getInstance () |
Private Attributes | |
ilLogger | $logger = null |
ilLTIDataConnector | $connector = null |
Static Private Attributes | |
static ilLTIAppEventListener | $instance = null |
Class ilLTIAppEventListener.
Definition at line 29 of file class.ilLTIAppEventListener.php.
|
protected |
ilLTIAppEventListener constructor.
Definition at line 41 of file class.ilLTIAppEventListener.php.
References $DIC, ilLoggerFactory\getLogger(), and ILIAS\Repository\logger().
|
protected |
ilObjectNotFoundException | |
ilDatabaseException |
Definition at line 133 of file class.ilLTIAppEventListener.php.
References $DIC, $logger, ilLogger\debug(), ilObjectFactory\getInstanceByRefId(), ilLogger\info(), ilLPStatus\LP_STATUS_COMPLETED_NUM, and ilLPStatus\LP_STATUS_FAILED_NUM.
Referenced by doCronUpdate().
|
protected |
ilDateTime | $since |
ilDateTimeException |
Definition at line 96 of file class.ilLTIAppEventListener.php.
References $resources, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_lookupId(), ilObject\_lookupObjId(), ilLPStatus\_lookupPercentage(), ilLPStatus\_lookupStatus(), definePercentageByObjectId(), ILIAS\Repository\logger(), and tryOutcomeService().
|
staticprotected |
Definition at line 49 of file class.ilLTIAppEventListener.php.
References $instance.
Referenced by handleCronUpdate(), and handleEvent().
|
static |
ilDateTime | $since |
ilDateTimeException |
Definition at line 220 of file class.ilLTIAppEventListener.php.
References getInstance().
Referenced by ilLTICronOutcomeService\run().
|
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<string,mixed> | $a_parameter parameter array (assoc), array("name" => ..., "phone_office" => ...) |
Implements ilAppEventListener.
Definition at line 197 of file class.ilLTIAppEventListener.php.
References $logger, getInstance(), ilLoggerFactory\getLogger(), and ilLogger\info().
|
static |
Definition at line 228 of file class.ilLTIAppEventListener.php.
References $connector, $DIC, $logger, $ref_id, $resources, ilObject\_getAllReferences(), ilObjUser\_lookupAuthMode(), ilObjUser\_lookupExternalAccount(), ilLogger\debug(), ilObjectLP\getInstance(), ilLoggerFactory\getLogger(), ilLTIDataConnector\lookupResourcesForUserObjectRelation(), and ilLPObjSettings\LP_MODE_DEACTIVATED.
Referenced by ilObjSCORMTracking\storeJsApiCmi().
|
protected |
Handle update status.
Definition at line 61 of file class.ilLTIAppEventListener.php.
References $ref_id, $resources, ilObject\_getAllReferences(), ilObjUser\_lookupAuthMode(), ilObjUser\_lookupExternalAccount(), ilLogLevel\DEBUG, isLTIAuthMode(), ILIAS\Repository\logger(), and tryOutcomeService().
|
protected |
Definition at line 148 of file class.ilLTIAppEventListener.php.
Referenced by handleUpdateStatus().
|
protected |
try outcome service
Definition at line 157 of file class.ilLTIAppEventListener.php.
References ILIAS\Repository\logger(), 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 35 of file class.ilLTIAppEventListener.php.
Referenced by handleOutcomeWithoutLP().
|
staticprivate |
Definition at line 31 of file class.ilLTIAppEventListener.php.
Referenced by getInstance().
|
private |
Definition at line 33 of file class.ilLTIAppEventListener.php.
Referenced by definePercentageByObjectId(), handleEvent(), and handleOutcomeWithoutLP().