|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| __construct (stdClass $submission, $showauthor=false) | |
| anonymize () | |
| is_anonymous () | |
Protected Attributes | |
| $anonymous | |
| $fields = array() | |
Common base class for submissions and example submissions rendering
Subclasses of this class convert raw submission record from workshop_submissions table (as returned by {
Definition at line 2556 of file locallib.php.
| __construct | ( | stdClass $ | submission, |
| $ | showauthor = false |
||
| ) |
Copies the properties of the given database record into properties of $this instance
| stdClass | $submission | full record |
| bool | $showauthor | show the author-related information |
| array | $options | additional properties |
Definition at line 2571 of file locallib.php.
| 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.
Definition at line 2595 of file locallib.php.
| is_anonymous | ( | ) |
Does the submission object contain author-related information?
Reimplemented in workshop_example_submission_summary.
Definition at line 2608 of file locallib.php.

$anonymous [protected] |
Definition at line 2559 of file locallib.php.
$fields = array() [protected] |
Reimplemented in workshop_example_submission, workshop_example_submission_summary, workshop_submission, and workshop_submission_summary.
Definition at line 2562 of file locallib.php.