|
| delete (int $id) |
| Delete a user based on id.
|
|
| delete_by_deployment (int $deploymentid) |
| Delete all lti user instances based on a given local deployment instance id.
|
|
| exists (int $id) |
| Check whether or not the given user object exists.
|
|
| find (int $id) |
| Find and return a user by id.
|
|
| find_by_resource (int $resourceid) |
| Find all users for a particular shared resource.
|
|
| find_by_resource_link (int $resourcelinkid) |
| Get a list of users associated with the given resource link.
|
|
| find_single_user_by_resource (int $userid, int $resourceid) |
| Find an lti user instance by resource.
|
|
| save (user $user) |
| Save a user instance in the store.
|
|
◆ delete()
enrol_lti\local\ltiadvantage\repository\user_repository::delete |
( |
int | $id | ) |
|
Delete a user based on id.
- Parameters
-
int | $id | the id of the user to remove. |
◆ delete_by_deployment()
enrol_lti\local\ltiadvantage\repository\user_repository::delete_by_deployment |
( |
int | $deploymentid | ) |
|
Delete all lti user instances based on a given local deployment instance id.
- Parameters
-
int | $deploymentid | the local id of the deployment instance to which the users belong. |
◆ exists()
enrol_lti\local\ltiadvantage\repository\user_repository::exists |
( |
int | $id | ) |
|
Check whether or not the given user object exists.
- Parameters
-
int | $id | the unique id the user. |
- Return values
-
bool | true if found, false otherwise. |
◆ find()
enrol_lti\local\ltiadvantage\repository\user_repository::find |
( |
int | $id | ) |
|
Find and return a user by id.
- Parameters
-
int | $id | the id of the user object. |
- Return values
-
user|null | the user object, or null if the object cannot be found. |
◆ find_by_resource()
enrol_lti\local\ltiadvantage\repository\user_repository::find_by_resource |
( |
int | $resourceid | ) |
|
Find all users for a particular shared resource.
- Parameters
-
int | $resourceid | the id of the shared resource. |
- Return values
-
array | the array of users, empty if none were found. |
◆ find_by_resource_link()
enrol_lti\local\ltiadvantage\repository\user_repository::find_by_resource_link |
( |
int | $resourcelinkid | ) |
|
Get a list of users associated with the given resource link.
- Parameters
-
int | $resourcelinkid | the id of the resource_link instance with which the users are associated. |
- Return values
-
array | the array of users, empty if none were found. |
◆ find_single_user_by_resource()
enrol_lti\local\ltiadvantage\repository\user_repository::find_single_user_by_resource |
( |
int | $userid, |
|
|
int | $resourceid ) |
Find an lti user instance by resource.
- Parameters
-
int | $userid | the id of the moodle user to look for. |
int | $resourceid | the id of the published resource. |
- Return values
-
user|null | the lti user instance, or null if not found. |
◆ save()
enrol_lti\local\ltiadvantage\repository\user_repository::save |
( |
user | $user | ) |
|
Save a user instance in the store.
- Parameters
-
user | $user | the object to save. |
- Return values
-
The documentation for this class was generated from the following file:
- enrol/lti/classes/local/ltiadvantage/repository/user_repository.php