| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
Class to represent a platform user. More...
 Inheritance diagram for ILIAS\LTI\ToolProvider\UserResult:
 Collaboration diagram for ILIAS\LTI\ToolProvider\UserResult:Public Member Functions | |
| __construct () | |
| Class constructor.  More... | |
| initialize () | |
| Initialise the user.  More... | |
| save () | |
| Save the user to the database.  More... | |
| delete () | |
| Delete the user from the database.  More... | |
| getResourceLink () | |
| Get resource link.  More... | |
| setResourceLink (ResourceLink $resourceLink) | |
| Set resource link.  More... | |
| getRecordId () | |
| Get record ID of user.  More... | |
| setRecordId (int $id) | |
| Set record ID of user.  More... | |
| setResourceLinkId (int $resourceLinkId) | |
| Set resource link ID of user.  More... | |
| getDataConnector () | |
| Get the data connector.  More... | |
| setDataConnector (DataConnector $dataConnector) | |
| Set the data connector.  More... | |
| getId (int $idScope=null, Platform $platform=null) | |
| Get the user ID (which may be a compound of the platform and resource link IDs).  More... | |
  Public Member Functions inherited from ILIAS\LTI\ToolProvider\User | |
| __construct () | |
| Class constructor.  More... | |
| initialize () | |
| Initialise the user.  More... | |
| initialise () | |
| Initialise the user.  More... | |
| setNames (string $firstname, string $lastname, string $fullname) | |
| Set the user's name.  More... | |
| setEmail (string $email, string $defaultEmail=null) | |
| Set the user's email address.  More... | |
| isAdmin () | |
| Check if the user is an administrator (at any of the system, institution or context levels).  More... | |
| isStaff () | |
| Check if the user is staff.  More... | |
| isLearner () | |
| Check if the user is a learner.  More... | |
Static Public Member Functions | |
| static | fromRecordId (int $id, DataConnector $dataConnector) | 
| Load the user from the database.  More... | |
| static | fromResourceLink (ResourceLink $resourceLink, string $ltiUserId) | 
| Class constructor from resource link.  More... | |
Data Fields | |
| string | $ltiResultSourcedId = null | 
| UserResult's result sourcedid.  More... | |
| int | $created = null | 
| Date/time the record was created.  More... | |
| int | $updated = null | 
| Date/time the record was last updated.  More... | |
  Data Fields inherited from ILIAS\LTI\ToolProvider\User | |
| string | $firstname = '' | 
| User's first name.  More... | |
| string | $lastname = '' | 
| User's last name (surname or family name).  More... | |
| string | $fullname = '' | 
| User's fullname.  More... | |
| string | $sourcedId = null | 
| User's sourcedId.  More... | |
| string | $username = null | 
| User's username.  More... | |
| string | $email = '' | 
| User's email address.  More... | |
| string | $image = '' | 
| User's image URI.  More... | |
| array | $roles = array() | 
| Roles for user.  More... | |
| array | $groups = array() | 
| Groups for user.  More... | |
| string | $ltiUserId = null | 
| user ID as supplied in the last connection request.  More... | |
Private Member Functions | |
| load (int $id=null) | |
| Load the user from the database.  More... | |
Private Attributes | |
| ResourceLink | $resourceLink = null | 
| Resource link object.  More... | |
| int | $resourceLinkId = null | 
| Resource link record ID.  More... | |
| int | $id = null | 
| UserResult record ID value.  More... | |
| DataConnector | $dataConnector = null | 
| Data connector object or string.  More... | |
Additional Inherited Members | |
  Static Public Attributes inherited from ILIAS\LTI\ToolProvider\User | |
| static bool | $allowEmptyName = false | 
| Allow user name field to be empty?  More... | |
Class to represent a platform user.
Definition at line 30 of file UserResult.php.
| ILIAS\LTI\ToolProvider\UserResult::__construct | ( | ) | 
Class constructor.
Definition at line 84 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\initialize().
 Here is the call graph for this function:| ILIAS\LTI\ToolProvider\UserResult::delete | ( | ) | 
Delete the user from the database.
Definition at line 121 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\getDataConnector().
 Here is the call graph for this function:
      
  | 
  static | 
Load the user from the database.
| int | $id | Record ID of user | 
| DataConnector | $dataConnector | Database connection object | 
Definition at line 250 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$dataConnector.
      
  | 
  static | 
Class constructor from resource link.
| ResourceLink | $resourceLink | ResourceLink object | 
| string | $ltiUserId | UserResult ID value | 
Definition at line 265 of file UserResult.php.
References ILIAS\LTI\ToolProvider\User\$ltiUserId, ILIAS\LTI\ToolProvider\UserResult\$resourceLink, ILIAS\LTI\ToolProvider\ResourceLink\getDataConnector(), and ILIAS\LTI\ToolProvider\ResourceLink\getRecordId().
Referenced by ILIAS\LTI\ToolProvider\Tool\authenticate(), ILIAS\LTI\ToolProvider\Service\Membership\getMembers(), ILIAS\LTI\ToolProvider\ResourceLink\getMemberships(), ilLTIAppEventListener\handleOutcomeWithoutLP(), and ilLTIAppEventListener\tryOutcomeService().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ILIAS\LTI\ToolProvider\UserResult::getDataConnector | ( | ) | 
Get the data connector.
Definition at line 185 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$dataConnector.
Referenced by ILIAS\LTI\ToolProvider\UserResult\delete(), ILIAS\LTI\ToolProvider\UserResult\getResourceLink(), ILIAS\LTI\ToolProvider\UserResult\load(), and ILIAS\LTI\ToolProvider\UserResult\save().
 Here is the caller graph for this function:| ILIAS\LTI\ToolProvider\UserResult::getId | ( | int | $idScope = null,  | 
        
| Platform | $platform = null  | 
        ||
| ) | 
Get the user ID (which may be a compound of the platform and resource link IDs).
| int | null | $idScope | Scope to use for user ID (optional, default is null for consumer default setting) | 
| Platform | null | $platform | Platform for user (optional) | 
Definition at line 205 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$id, ILIAS\LTI\ToolProvider\$key, ILIAS\LTI\ToolProvider\User\$ltiUserId, ILIAS\LTI\ToolProvider\UserResult\getResourceLink(), ILIAS\LTI\ToolProvider\Tool\ID_SCOPE_CONTEXT, ILIAS\LTI\ToolProvider\Tool\ID_SCOPE_GLOBAL, ILIAS\LTI\ToolProvider\Tool\ID_SCOPE_ID_ONLY, ILIAS\LTI\ToolProvider\Tool\ID_SCOPE_RESOURCE, and ILIAS\LTI\ToolProvider\Tool\ID_SCOPE_SEPARATOR.
 Here is the call graph for this function:| ILIAS\LTI\ToolProvider\UserResult::getRecordId | ( | ) | 
Get record ID of user.
Definition at line 156 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$id.
| ILIAS\LTI\ToolProvider\UserResult::getResourceLink | ( | ) | 
Get resource link.
Definition at line 133 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$resourceLink, ILIAS\LTI\ToolProvider\ResourceLink\fromRecordId(), and ILIAS\LTI\ToolProvider\UserResult\getDataConnector().
Referenced by ILIAS\LTI\ToolProvider\ResourceLink\doOutcomesService(), and ILIAS\LTI\ToolProvider\UserResult\getId().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ILIAS\LTI\ToolProvider\UserResult::initialize | ( | ) | 
Initialise the user.
Definition at line 92 of file UserResult.php.
Referenced by ILIAS\LTI\ToolProvider\UserResult\__construct(), ILIAS\LTI\ToolProvider\DataConnector\DataConnector\deleteUserResult(), and ILIAS\LTI\ToolProvider\UserResult\load().
 Here is the caller graph for this function:
      
  | 
  private | 
Load the user from the database.
| int | null | $id | Record ID of user (optional, default is null) | 
Definition at line 290 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$id, ILIAS\LTI\ToolProvider\UserResult\getDataConnector(), ILIAS\LTI\ToolProvider\UserResult\initialize(), and ILIAS\LTI\ToolProvider\DataConnector\DataConnector\loadUserResult().
 Here is the call graph for this function:| ILIAS\LTI\ToolProvider\UserResult::save | ( | ) | 
Save the user to the database.
Definition at line 105 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\getDataConnector().
 Here is the call graph for this function:| ILIAS\LTI\ToolProvider\UserResult::setDataConnector | ( | DataConnector | $dataConnector | ) | 
Set the data connector.
| DataConnector | $dataConnector | Data connector object | 
Definition at line 194 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$dataConnector.
| ILIAS\LTI\ToolProvider\UserResult::setRecordId | ( | int | $id | ) | 
Set record ID of user.
| int | $id | Record ID of user | 
Definition at line 165 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$id.
| ILIAS\LTI\ToolProvider\UserResult::setResourceLink | ( | ResourceLink | $resourceLink | ) | 
Set resource link.
| ResourceLink | $resourceLink | Resource link object | 
Definition at line 146 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$resourceLink.
| ILIAS\LTI\ToolProvider\UserResult::setResourceLinkId | ( | int | $resourceLinkId | ) | 
Set resource link ID of user.
| int | $resourceLinkId | Resource link ID of user | 
Definition at line 174 of file UserResult.php.
References ILIAS\LTI\ToolProvider\UserResult\$resourceLinkId.
| int null ILIAS\LTI\ToolProvider\UserResult::$created = null | 
Date/time the record was created.
Definition at line 44 of file UserResult.php.
      
  | 
  private | 
Data connector object or string.
Definition at line 79 of file UserResult.php.
Referenced by ILIAS\LTI\ToolProvider\UserResult\fromRecordId(), ILIAS\LTI\ToolProvider\UserResult\getDataConnector(), and ILIAS\LTI\ToolProvider\UserResult\setDataConnector().
      
  | 
  private | 
UserResult record ID value.
Definition at line 72 of file UserResult.php.
Referenced by ILIAS\LTI\ToolProvider\UserResult\getId(), ILIAS\LTI\ToolProvider\UserResult\getRecordId(), ILIAS\LTI\ToolProvider\UserResult\load(), and ILIAS\LTI\ToolProvider\UserResult\setRecordId().
| string null ILIAS\LTI\ToolProvider\UserResult::$ltiResultSourcedId = null | 
UserResult's result sourcedid.
Definition at line 37 of file UserResult.php.
      
  | 
  private | 
Resource link object.
Definition at line 58 of file UserResult.php.
Referenced by ILIAS\LTI\ToolProvider\UserResult\fromResourceLink(), ILIAS\LTI\ToolProvider\UserResult\getResourceLink(), and ILIAS\LTI\ToolProvider\UserResult\setResourceLink().
      
  | 
  private | 
Resource link record ID.
Definition at line 65 of file UserResult.php.
Referenced by ILIAS\LTI\ToolProvider\UserResult\setResourceLinkId().
| int null ILIAS\LTI\ToolProvider\UserResult::$updated = null | 
Date/time the record was last updated.
Definition at line 51 of file UserResult.php.