Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
mod_h5pactivity\local\report\attempts Class Reference

Class H5P activity attempts report. More...

Inheritance diagram for mod_h5pactivity\local\report\attempts:
mod_h5pactivity\local\report

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
 

Detailed Description

Class H5P activity attempts report.

Since
Moodle 3.9

Constructor & Destructor Documentation

◆ __construct()

mod_h5pactivity\local\report\attempts::__construct ( manager $manager,
stdClass $user )

Create a new participants report.

Parameters
manager$managerh5pactivity manager object
stdClass$useruser record

Member Function Documentation

◆ get_attempt()

mod_h5pactivity\local\report\attempts::get_attempt ( )

Return the report attempt object.

Attempts report has no specific attempt.

Return values
attempt|nullthe attempt object or null

Implements mod_h5pactivity\local\report.

◆ get_attempts()

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.

Return values
attempts[]

◆ get_scored()

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.

Return values
stdClass|nulla structure with
  • title => name of the selected attempt (or null)
  • attempt => the selected attempt object (or null)
  • gradingmethos => the activity grading method (or null)

◆ get_user()

mod_h5pactivity\local\report\attempts::get_user ( )

Return the report user record.

Return values
stdClass|nulla user or null

Implements mod_h5pactivity\local\report.

◆ print()

mod_h5pactivity\local\report\attempts::print ( )

Print the report.

Implements mod_h5pactivity\local\report.


The documentation for this class was generated from the following file: