|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class ilLTIAppEventListener. More...
Inheritance diagram for ilLTIAppEventListener:
Collaboration diagram for ilLTIAppEventListener: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().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
|
staticprotected |
Definition at line 49 of file class.ilLTIAppEventListener.php.
References $instance.
Referenced by handleCronUpdate(), and handleEvent().
Here is the caller graph for this function:
|
static |
| ilDateTime | $since |
| ilDateTimeException |
Definition at line 220 of file class.ilLTIAppEventListener.php.
References getInstance().
Referenced by ilLTICronOutcomeService\run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
|
protected |
Definition at line 148 of file class.ilLTIAppEventListener.php.
Referenced by handleUpdateStatus().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().