Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

Contains renderers for the bulk activity completion stuff.

Copyright: 2017 Adrian Greeve
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 115 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_course_bulk_activity_completion_renderer:: (5 methods):
  navigation()
  bulkcompletion()
  defaultcompletion()
  edit_bulk_completion()
  edit_default_completion()


Class: core_course_bulk_activity_completion_renderer  - X-Ref

Main renderer for the bulk activity completion stuff.

navigation($courseorid, $page)   X-Ref
Render the navigation tabs for the completion page.

param: int|stdClass $courseorid the course object or id.
param: String $page the tab to focus.
return: string html

bulkcompletion($data)   X-Ref
Render the bulk completion tab.

param: Array|stdClass $data the context data to pass to the template.
return: bool|string

defaultcompletion($data)   X-Ref
Render the default completion tab.

param: Array|stdClass $data the context data to pass to the template.
return: bool|string

edit_bulk_completion($form, $activities)   X-Ref
Renders the form for bulk editing activities completion

param: moodleform $form
param: array $activities
return: string

edit_default_completion($form, $modules)   X-Ref
Renders the form for editing default completion

param: moodleform $form
param: array $modules
return: string