Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Public Attributes | List of all members
mod_h5pactivity\output\attempt Class Reference

Class to help display report link in mod_h5pactivity. More...

Inheritance diagram for mod_h5pactivity\output\attempt:
renderable templatable

Public Member Functions

 __construct (activity_attempt $attempt, stdClass $user=null, int $courseid=null)
 Constructor. More...
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template. More...
 

Public Attributes

activity_attempt $attempt
 attempt
 
int $courseid
 courseid necesary to present user picture
 
stdClass $user
 user record
 

Detailed Description

Class to help display report link in mod_h5pactivity.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

mod_h5pactivity\output\attempt::__construct ( activity_attempt  $attempt,
stdClass  $user = null,
int  $courseid = null 
)

Constructor.

Parameters
activity_attempt$attemptthe attempt object
stdClass$usera user record (default null).
int$courseidoptional course id (default null).

Member Function Documentation

◆ export_for_template()

mod_h5pactivity\output\attempt::export_for_template ( renderer_base  $output)

Export this data so it can be used as the context for a mustache template.

Parameters
renderer_base$output
Return values
stdClass

Implements templatable.


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