Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Common base class for submissions and example submissions rendering. More...
Public Member Functions | |
__construct (workshop $workshop, stdClass $submission, $showauthor=false) | |
Copies the properties of the given database record into properties of $this instance. More... | |
anonymize () | |
Unsets all author-related properties so that the renderer does not have access to them. More... | |
is_anonymous () | |
Does the submission object contain author-related information? More... | |
Protected Attributes | |
bool | $anonymous |
is the submission anonymous (i.e. More... | |
array | $fields = array() |
workshop | $workshop |
Common base class for submissions and example submissions rendering.
Subclasses of this class convert raw submission record from workshop_submissions table (as returned by {
workshop_submission_base::__construct | ( | workshop | $workshop, |
stdClass | $submission, | ||
$showauthor = false |
|||
) |
Copies the properties of the given database record into properties of $this instance.
workshop | $workshop | |
stdClass | $submission | full record |
bool | $showauthor | show the author-related information |
array | $options | additional properties |
workshop_submission_base::anonymize | ( | ) |
Unsets all author-related properties so that the renderer does not have access to them.
Usually this is called by the contructor but can be called explicitely, too.
workshop_submission_base::is_anonymous | ( | ) |
Does the submission object contain author-related information?
null|boolean |
Reimplemented in workshop_example_submission_summary.
|
protected |
is the submission anonymous (i.e.
contains author information)