Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
assign_attempt_history_chooser Class Reference

Used to output the attempt history chooser for a particular assignment. More...

Inheritance diagram for assign_attempt_history_chooser:
renderable templatable

Public Member Functions

 __construct ($submissions, $grades, $coursemoduleid, $userid)
 Constructor.
 
 export_for_template (renderer_base $output)
 Function to export the renderer data in a format that is suitable for a mustache template.
 

Public Attributes

int $coursemoduleid = 0
 coursemoduleid - The cmid for the assignment
 
array $grades = array()
 grades - The grades for the previous attempts
 
int $submissioncount
 submission count
 
array $submissions = array()
 submissions - The list of previous attempts
 
int $userid = 0
 userid - The current userid
 

Detailed Description

Used to output the attempt history chooser for a particular assignment.

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

Constructor & Destructor Documentation

◆ __construct()

assign_attempt_history_chooser::__construct ( $submissions,
$grades,
$coursemoduleid,
$userid )

Constructor.

Parameters
array$submissions
array$grades
int$coursemoduleid
int$userid

Member Function Documentation

◆ export_for_template()

assign_attempt_history_chooser::export_for_template ( renderer_base $output)

Function to export the renderer data in a format that is suitable for a mustache template.

Parameters
renderer_base$outputUsed to do a final render of any components that need to be rendered for export.
Return values
stdClass|array

Implements templatable.


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