| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
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) | |||||||||
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, ilObjectFactory\getInstanceByRefId(), 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.
      
  | 
  static | 
| ilDateTime | $since | 
| ilDateTimeException | 
Definition at line 220 of file class.ilLTIAppEventListener.php.
Referenced by ilLTICronOutcomeService\run().
 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 ilLoggerFactory\getLogger().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 228 of file class.ilLTIAppEventListener.php.
References $DIC, $ref_id, $resources, ilObject\_getAllReferences(), ilObjUser\_lookupAuthMode(), ilObjUser\_lookupExternalAccount(), ilObjectLP\getInstance(), ilLoggerFactory\getLogger(), and ilLPObjSettings\LP_MODE_DEACTIVATED.
Referenced by ilSCORM2004StoreData\persistCMIData(), and 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.
      
  | 
  staticprivate | 
Definition at line 31 of file class.ilLTIAppEventListener.php.
      
  | 
  private | 
Definition at line 33 of file class.ilLTIAppEventListener.php.