|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
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. | |
| anonymize () | |
| Unsets all author-related properties so that the renderer does not have access to them. | |
| is_anonymous () | |
| Does the submission object contain author-related information? | |
Protected Attributes | |
| bool | $anonymous |
| is the submission anonymous (i.e. | |
| 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)