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.

Differences Between: [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 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