(no description)
File Size: | 298 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
badges:: (7 methods):
initialise()
can_view()
add_columns()
add_filters()
add_actions()
get_badge_context()
get_row_class()
initialise() X-Ref |
Initialise report, we need to set the main table, load our entities and set columns/filters |
can_view() X-Ref |
Validates access to view this report return: bool |
add_columns(badge $badgeentity) X-Ref |
Adds the columns we want to display in the report They are provided by the entities we previously added in the {@see initialise} method, referencing each by their unique identifier. If custom columns are needed just for this report, they can be defined here. param: badge $badgeentity |
add_filters() X-Ref |
Adds the filters we want to display in the report They are all provided by the entities we previously added in the {@see initialise} method, referencing each by their unique identifier |
add_actions() X-Ref |
Add the system report actions. An extra column will be appended to each row, containing all actions added here Note the use of ":id" placeholder which will be substituted according to actual values in the row |
get_badge_context(int $type, int $courseid) X-Ref |
Return badge context based on type and courseid param: int $type param: int $courseid return: \core\context |
get_row_class(stdClass $row) X-Ref |
CSS classes to add to the row param: stdClass $row return: string |