Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
workshop_submission_summary Class Reference

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

Inheritance diagram for workshop_submission_summary:
workshop_submission_base renderable workshop_submission

Public Member Functions

 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?
 

Public Attributes

string $authoralternatename
 
string $authoremail
 
string $authorfirstname
 
string $authorfirstnamephonetic
 
int $authorid
 
string $authorimagealt
 
string $authorlastname
 
string $authorlastnamephonetic
 
string $authormiddlename
 
int $authorpicture
 
int $id
 
string $status
 graded|notgraded
 
int $timecreated
 
int $timemodified
 
string $title
 
moodle_url $url
 to display submission
 

Protected Attributes

bool $anonymous
 is the submission anonymous (i.e.
 
array $fields
 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 submission summary.

See also
workshop_renderer\render_workshop_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_submission_base::is_anonymous ( )
inherited

Does the submission object contain author-related information?

Return values
null|boolean

Reimplemented in workshop_example_submission_summary.

Member Data Documentation

◆ $anonymous

bool workshop_submission_base::$anonymous
protectedinherited

is the submission anonymous (i.e.

contains author information)

◆ $fields

array workshop_submission_summary::$fields
protected
Initial value:
= array(
'id', 'title', 'timecreated', 'timemodified',
'authorid', 'authorfirstname', 'authorlastname', 'authorfirstnamephonetic', 'authorlastnamephonetic',
'authormiddlename', 'authoralternatename', 'authorpicture',
'authorimagealt', 'authoremail')

of columns from workshop_submissions that are assigned as properties of instances of this class


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