Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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