Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Class H5P activity attempts report. More...
Public Member Functions | |
__construct (manager $manager, stdClass $user) | |
Create a new participants report. | |
get_attempt () | |
Return the report attempt object. | |
get_attempts () | |
Return the current report attempts. | |
get_scored () | |
Return the current report attempts. | |
get_user () | |
Return the report user record. | |
print () | |
Print the report. | |
Public Attributes | |
global | $CFG |
Class H5P activity attempts report.
mod_h5pactivity\local\report\attempts::__construct | ( | manager | $manager, |
stdClass | $user ) |
Create a new participants report.
manager | $manager | h5pactivity manager object |
stdClass | $user | user record |
mod_h5pactivity\local\report\attempts::get_attempt | ( | ) |
Return the report attempt object.
Attempts report has no specific attempt.
attempt|null | the attempt object or null |
Implements mod_h5pactivity\local\report.
mod_h5pactivity\local\report\attempts::get_attempts | ( | ) |
Return the current report attempts.
This method is used to render the report in both browser and mobile.
attempts[] |
mod_h5pactivity\local\report\attempts::get_scored | ( | ) |
Return the current report attempts.
This method is used to render the report in both browser and mobile.
stdClass|null | a structure with
|
mod_h5pactivity\local\report\attempts::get_user | ( | ) |
Return the report user record.
stdClass|null | a user or null |
Implements mod_h5pactivity\local\report.
mod_h5pactivity\local\report\attempts::print | ( | ) |
Print the report.
Implements mod_h5pactivity\local\report.