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.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 401 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: 131 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:: (6 methods):
  navigation()
  bulkcompletion()
  defaultcompletion()
  edit_bulk_completion()
  edit_default_completion()
  render_course_completion_action_bar()


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

render_course_completion_action_bar(\core_course\output\completion_action_bar $actionbar)   X-Ref
Renders the course completion action bar.

param: \core_course\output\completion_action_bar $actionbar
return: string The HTML output