(no description)
File Size: | 103 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
resource_sender:: (3 methods):
__construct()
get_allowed_share_formats()
prepare_share_contents()
Class: resource_sender - X-Ref
API for sharing Moodle LMS resources to MoodleNet instances.__construct(int $resourceid,protected int $userid,protected moodlenet_client $moodlenetclient,protected client $oauthclient,protected int $shareformat = self::SHARE_FORMAT_BACKUP,) X-Ref |
Class constructor. param: int $resourceid The resource ID of the resource being shared. param: int $userid The user ID who is sharing the activity. param: moodlenet_client $moodlenetclient The moodlenet_client object used to perform the share. param: client $oauthclient The OAuth 2 client for the MoodleNet instance. param: int $shareformat The data format to share in. Defaults to a Moodle backup (SHARE_FORMAT_BACKUP). |
get_allowed_share_formats() X-Ref |
Return the list of supported share formats. return: array Array of supported share format values. |
prepare_share_contents() X-Ref |
Prepare the data for sharing, in the format specified. return: stored_file |