Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Represents the user planner tool. More...
Public Member Functions | |
__construct (workshop $workshop, $userid) | |
Prepare an individual workshop plan for the given user. More... | |
get_examples () | |
Returns example submissions to be assessed by the owner of the planner. More... | |
Public Attributes | |
array | $phases = array() |
of (stdclass)tasks | |
int | $userid |
id of the user this plan is for | |
workshop | $workshop |
Protected Attributes | |
null array | $examples = null |
of example submissions to be assessed by the planner owner | |
Represents the user planner tool.
Planner contains list of phases. Each phase contains list of tasks. Task is a simple object with title, link and completed (true/false/null logic).
workshop_user_plan::__construct | ( | workshop | $workshop, |
$userid | |||
) |
Prepare an individual workshop plan for the given user.
workshop | $workshop | instance |
int | $userid | whom the plan is prepared for |
workshop_user_plan::get_examples | ( | ) |
Returns example submissions to be assessed by the owner of the planner.
This is here to cache the DB query because the same list is needed later in view.php
array |