Output the user submission actionbar for this activity.
More...
|
| __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.
|
|
|
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.
|
|
Output the user submission actionbar for this activity.
- Copyright
- 2021 Adrian Greeve adria.nosp@m.n@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __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 | $cmid | The course module ID. |
bool | $showsubmit | Whether to show the submit button. |
bool | $showedit | Whether to show the edit button. |
stdClass | null | $submission | A submission for this activity. |
stdClass | null | $teamsubmission | A team submission for this activity. |
int | $timelimit | The time limit for completing this activity. |
◆ 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 | $output | renderer base output. |
- Return values
-
array | The data to be rendered. |
◆ get_current_status()
mod_assign\output\user_submission_actionmenu::get_current_status |
( |
| ) |
|
|
protected |
Get the submission status.
- Return values
-
string | The status of the submission. |
◆ $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:
- mod/assign/classes/output/user_submission_actionmenu.php