Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
mod_assign\output\user_submission_actionmenu Class Reference

Output the user submission actionbar for this activity. More...

Inheritance diagram for mod_assign\output\user_submission_actionmenu:

Public Member Functions

 __construct (int $cmid, bool $showsubmit, bool $showedit, ?stdClass $submission=null, ?stdClass $teamsubmission=null, int $timelimit=0)
 Constructor for this object.
 
 export_for_template (\renderer_base $output)
 Export the submission buttons for the page.
 

Protected Member Functions

 get_current_status ()
 Get the submission status.
 

Protected Attributes

int $cmid
 The course module ID.
 
bool $showedit
 Whether to show the edit button.
 
bool $showsubmit
 Whether to show the submit button.
 
stdClass $submission
 A submission for this activity.
 
stdClass $teamsubmission
 A team submission for this activity.
 
int $timelimit
 The time limit for the submission.
 

Detailed Description

Output the user submission actionbar for this activity.

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

Constructor & Destructor Documentation

◆ __construct()

mod_assign\output\user_submission_actionmenu::__construct ( int $cmid,
bool $showsubmit,
bool $showedit,
?stdClass $submission = null,
?stdClass $teamsubmission = null,
int $timelimit = 0 )

Constructor for this object.

Parameters
int$cmidThe course module ID.
bool$showsubmitWhether to show the submit button.
bool$showeditWhether to show the edit button.
stdClass | null$submissionA submission for this activity.
stdClass | null$teamsubmissionA team submission for this activity.
int$timelimitThe time limit for completing this activity.

Member Function Documentation

◆ export_for_template()

mod_assign\output\user_submission_actionmenu::export_for_template ( \renderer_base $output)

Export the submission buttons for the page.

Parameters
renderer_base$outputrenderer base output.
Return values
arrayThe data to be rendered.

◆ get_current_status()

mod_assign\output\user_submission_actionmenu::get_current_status ( )
protected

Get the submission status.

Return values
stringThe status of the submission.

Member Data Documentation

◆ $timelimit

int mod_assign\output\user_submission_actionmenu::$timelimit
protected

The time limit for the submission.

0 = no time limit.


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