Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Renderer class for manage rules page.

Copyright: 2014 onwards Ankit Agarwal <ankit.agrr@gmail.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 99 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

renderer:: (4 methods):
  render_renderable()
  render_table()
  render_add_button()
  render_subscriptions_link()


Class: renderer  - X-Ref

Renderer class for manage rules page.

render_renderable(renderable $renderable)   X-Ref
Get html to display on the page.

param: renderable $renderable renderable widget
return: string to display on the mangerules page.

render_table(renderable $renderable)   X-Ref
Get html to display on the page.

param: renderable $renderable renderable widget
return: string to display on the mangerules page.

render_add_button($courseid)   X-Ref
Html to add a button for adding a new rule.

param: int $courseid course id.
return: string html for the button.

render_subscriptions_link($manageurl)   X-Ref
Html to add a link to go to the subscription page.

param: moodle_url $manageurl The url of the subscription page.
return: string html for the link to the subscription page.