Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
workshop_example_submission_summary Class Reference

Renderable object containing a basic set of information needed to display the example submission summary. More...

Inheritance diagram for workshop_example_submission_summary:
workshop_submission_base renderable workshop_example_submission

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
 
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')
 of columns from workshop_submissions that are assigned as properties of instances of this class
 
workshop $workshop
 

Detailed Description

Renderable object containing a basic set of information needed to display the example submission summary.

See also
workshop\prepare_example_summary()
workshop_renderer\render_workshop_example_submission_summary()

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 ( )

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: