Common base class for assessments rendering.
More...
|
| validate_raw_record (stdClass $record) |
| Makes sure that we can cook the renderable component from the passed raw database record. More...
|
|
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: