|
static | can_user_share (\core\context\course $coursecontext, int $userid) |
| Check whether a user has the capabilities required to share activities from a given course to MoodleNet.
|
|
static | is_valid_instance (issuer $issuer) |
| Check whether the specified issuer is configured as a MoodleNet instance that can be shared to.
|
|
◆ can_user_share()
static core\moodlenet\utilities::can_user_share |
( |
\core\context\course | $coursecontext, |
|
|
int | $userid ) |
|
static |
Check whether a user has the capabilities required to share activities from a given course to MoodleNet.
- Parameters
-
core\context\course | $coursecontext | Course context where the activity would be shared from. |
int | $userid | The user ID being checked. |
- Return values
-
◆ is_valid_instance()
static core\moodlenet\utilities::is_valid_instance |
( |
issuer | $issuer | ) |
|
|
static |
Check whether the specified issuer is configured as a MoodleNet instance that can be shared to.
- Parameters
-
issuer | $issuer | The OAuth 2 issuer being validated. |
- Return values
-
bool | true if the issuer is enabled and available to share to. |
The documentation for this class was generated from the following file:
- lib/classes/moodlenet/utilities.php