Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

File Size: 87 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: renderer  - X-Ref

Renderer class for auth_lti.

render_account_binding_options_page(int $provisioningmode)   X-Ref
Render the account options view, displayed to instructors on first launch if no account binding exists.

return: string the html.
param: int $provisioningmode the desired account provisioning mode, see auth_plugin_lti constants for details.

render_account_binding_complete(notification $notification, \moodle_url $returnurl)   X-Ref
Render the page displayed when the account binding is complete, letting the user continue to the launch.

Callers can provide different messages depending on which type of binding took place. For example, a newly
provisioned account may require a slightly different message to an existing account being linked.

The return URL is the page the user will be taken back to when they click 'Continue'. This is likely the launch
or deeplink launch endpoint but could be any calling code in LTI which wants to use the account binding workflow.

return: string the rendered HTML
param: notification $notification the notification containing the message describing the binding success.
param: \moodle_url $returnurl the URL to return to when the user clicks continue on the rendered page.