Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
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. More...
 
 export_for_template (renderer_base $output)
 Function to export the renderer data in a format that is suitable for a mustache template. More...
 

Public Attributes

int $coursemoduleid = 0
 coursemoduleid - The cmid for the assignment
 
array $grades = array()
 grades - The grades for the previous attempts
 
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: