Class H5P activity participants report.
More...
|
| | __construct (manager $manager, $currentgroup=false) |
| | Create a new participants report.
|
| |
| | col_attempts (stdClass $user) |
| | Generate attempts count column, if any.
|
| |
| | col_fullname ($user) |
| | Generate the fullname column.
|
| |
| | col_score (stdClass $user) |
| | Generate score column.
|
| |
| | col_timemodified (stdClass $user) |
| | Generate attempt timemodified column, if any.
|
| |
| | get_attempt () |
| | Return the report attempt object.
|
| |
| | get_user () |
| | Return the report user record.
|
| |
| | print () |
| | Print the report.
|
| |
| | print_headers () |
| | Print headers.
|
| |
|
| print_nothing_to_display () |
| | Warning in case no user has the selected initials letters.
|
| |
Class H5P activity participants report.
- Since
- Moodle 3.9
- Copyright
- 2020 Ferran Recio ferra.nosp@m.n@mo.nosp@m.odle..nosp@m.com
◆ __construct()
| mod_h5pactivity\local\report\participants::__construct |
( |
manager | $manager, |
|
|
| $currentgroup = false ) |
Create a new participants report.
- Parameters
-
| manager | $manager | h5pactivitymanager object |
| int | bool | $currentgroup | False if groups not used, 0 for all groups, group id (int) to filter by specific group |
◆ col_attempts()
| mod_h5pactivity\local\report\participants::col_attempts |
( |
stdClass | $user | ) |
|
Generate attempts count column, if any.
- Parameters
-
| stdClass | $user | the user record |
- Return values
-
◆ col_fullname()
| mod_h5pactivity\local\report\participants::col_fullname |
( |
| $user | ) |
|
Generate the fullname column.
- Parameters
-
- Return values
-
◆ col_score()
| mod_h5pactivity\local\report\participants::col_score |
( |
stdClass | $user | ) |
|
Generate score column.
- Parameters
-
| stdClass | $user | the user record |
- Return values
-
◆ col_timemodified()
| mod_h5pactivity\local\report\participants::col_timemodified |
( |
stdClass | $user | ) |
|
Generate attempt timemodified column, if any.
- Parameters
-
| stdClass | $user | the user record |
- Return values
-
◆ get_attempt()
| mod_h5pactivity\local\report\participants::get_attempt |
( |
| ) |
|
Return the report attempt object.
Participants report has no specific attempt.
- Return values
-
| attempt|null | the attempt object or null |
Implements mod_h5pactivity\local\report.
◆ get_user()
| mod_h5pactivity\local\report\participants::get_user |
( |
| ) |
|
Return the report user record.
Participants report has no specific user.
- Return values
-
| stdClass|null | a user or null |
Implements mod_h5pactivity\local\report.
◆ print()
| mod_h5pactivity\local\report\participants::print |
( |
| ) |
|
◆ print_headers()
| mod_h5pactivity\local\report\participants::print_headers |
( |
| ) |
|
Print headers.
Note: as per MDL-80754, we have to modify the header dynamically to display the total attempts in the column header.
The documentation for this class was generated from the following file:
- mod/h5pactivity/classes/local/report/participants.php