Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
workshop_example_submission Class Reference

Renderable object containing all the information needed to display the example submission. More...

Inheritance diagram for workshop_example_submission:
workshop_example_submission_summary renderable workshop_submission_base renderable

Public Member Functions

 anonymize ()
 Unsets all author-related properties so that the renderer does not have access to them.
 
 is_anonymous ()
 Example submissions are always anonymous.
 

Public Attributes

string $assesslabel
 
moodle_url $assessurl
 
array $attachment
 
string $content
 
int $contentformat
 
bool $contenttrust
 
bool $editable = false
 must be set explicitly by the caller
 
moodle_url $editurl
 
stdClass $gradeinfo
 
int $id
 
string $status
 graded|notgraded
 
string $title
 
moodle_url $url
 

Protected Attributes

bool $anonymous
 is the submission anonymous (i.e.
 
array $fields = array('id', 'title', 'content', 'contentformat', 'contenttrust', 'attachment')
 of columns from workshop_submissions that are assigned as properties of instances of this class
 
workshop $workshop
 

Detailed Description

Renderable object containing all the information needed to display the example submission.

See also
workshop_renderer\render_workshop_example_submission()

Member Function Documentation

◆ anonymize()

workshop_submission_base::anonymize ( )
inherited

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.

◆ is_anonymous()

workshop_example_submission_summary::is_anonymous ( )
inherited

Example submissions are always anonymous.

Return values
true

Reimplemented from workshop_submission_base.

Member Data Documentation

◆ $anonymous

bool workshop_submission_base::$anonymous
protectedinherited

is the submission anonymous (i.e.

contains author information)


The documentation for this class was generated from the following file: