Common base class for assessments rendering.
More...
|
| | __construct (workshop $workshop, stdClass $record, array $options=array()) |
| | Copies the properties of the given database record into properties of $this instance.
|
| |
| | add_action (moodle_url $url, $label, $method='get') |
| | Adds a new action.
|
| |
|
|
array | $actions = array() |
| | of actions
|
| |
|
stdClass null | $author = null |
| | assessed submission's author user info
|
| |
|
workshop_assessment_form | $form |
| | $form as returned by workshop_strategy::get_assessment_form()
|
| |
|
float | $maxgrade |
| | the real maximum grade
|
| |
|
float null | $realgrade = null |
| | the real received grade
|
| |
|
stdClass null | $reviewer = null |
| | reviewer user info
|
| |
|
string | $title = '' |
| | the optional title of the assessment
|
| |
|
moodle_url | $url |
| |
|
workshop | $workshop |
| |
|
| | validate_raw_record (stdClass $record) |
| | Makes sure that we can cook the renderable component from the passed raw database record.
|
| |
Common base class for assessments rendering.
Subclasses of this class convert raw assessment record from workshop_assessments table (as returned by {
- See also
- workshop\get_assessment_by_id()} for example) into renderable objects.
◆ __construct()
| workshop_assessment_base::__construct |
( |
workshop | $workshop, |
|
|
stdClass | $record, |
|
|
array | $options = array() ) |
Copies the properties of the given database record into properties of $this instance.
The $options keys are: showreviewer, showauthor
- Parameters
-
| workshop | $workshop | |
| stdClass | $assessment | full record |
| array | $options | additional properties |
◆ add_action()
| workshop_assessment_base::add_action |
( |
moodle_url | $url, |
|
|
| $label, |
|
|
| $method = 'get' ) |
Adds a new action.
- Parameters
-
| moodle_url | $url | action URL |
| string | $label | action label |
| string | $method | get|post |
◆ validate_raw_record()
| workshop_assessment_base::validate_raw_record |
( |
stdClass | $record | ) |
|
|
protected |
The documentation for this class was generated from the following file:
- mod/workshop/locallib.php