Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(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.

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

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.

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.
return: string the rendered HTML