|
| | delete (int $id) |
| | Delete the context identified by 'id' from the store.
|
| |
| | delete_by_deployment (int $deploymentid) |
| | Delete all contexts under a given deployment.
|
| |
| | exists (int $id) |
| | Check whether the context identified by 'id' exists in the store.
|
| |
| | find (int $id) |
| | Find a context by id.
|
| |
| | find_by_contextid (string $contextid, int $deploymentid) |
| | Find a context by it's platform-issued context id string.
|
| |
| | save (context $context) |
| | Save the context to the store.
|
| |
◆ delete()
| enrol_lti\local\ltiadvantage\repository\context_repository::delete |
( |
int | $id | ) |
|
Delete the context identified by 'id' from the store.
- Parameters
-
| int | $id | the id of context to delete. |
◆ delete_by_deployment()
| enrol_lti\local\ltiadvantage\repository\context_repository::delete_by_deployment |
( |
int | $deploymentid | ) |
|
Delete all contexts under a given deployment.
- Parameters
-
| int | $deploymentid | the id of the local deployment instance. |
◆ exists()
| enrol_lti\local\ltiadvantage\repository\context_repository::exists |
( |
int | $id | ) |
|
Check whether the context identified by 'id' exists in the store.
- Parameters
-
| int | $id | the id of the instance to check. |
- Return values
-
| bool | true if found, false otherwise. |
◆ find()
| enrol_lti\local\ltiadvantage\repository\context_repository::find |
( |
int | $id | ) |
|
Find a context by id.
- Parameters
-
| int | $id | the id of the instance. |
- Return values
-
| context|null | the context, if found, else null. |
◆ find_by_contextid()
| enrol_lti\local\ltiadvantage\repository\context_repository::find_by_contextid |
( |
string | $contextid, |
|
|
int | $deploymentid ) |
Find a context by it's platform-issued context id string.
- Parameters
-
| string | $contextid | the id of the context on the platform. |
| int | $deploymentid | the id of the local deployment instance in which the contextid is unique. |
- Return values
-
| context|null | the context instance, if found, else null. |
◆ save()
| enrol_lti\local\ltiadvantage\repository\context_repository::save |
( |
context | $context | ) |
|
Save the context to the store.
- Parameters
-
| context | $context | the context to save. |
- Return values
-
| context | the saved context instance. |
The documentation for this class was generated from the following file:
- enrol/lti/classes/local/ltiadvantage/repository/context_repository.php