Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Represents a rendarable full assessment. More...
Public Member Functions | |
add_action (moodle_url $url, $label, $method='get') | |
Adds a new action. | |
get_overall_feedback_attachments () | |
Prepares the list of overall feedback attachments. | |
get_overall_feedback_content () | |
Format the overall feedback text content. | |
Public Attributes | |
array | $actions = array() |
of actions | |
stdClass null | $author = null |
assessed submission's author user info | |
string | $feedbackauthor |
int | $feedbackauthorattachment |
int | $feedbackauthorformat |
workshop_assessment_form | $form |
$form as returned by workshop_strategy::get_assessment_form() | |
float | $grade |
float | $gradinggrade |
float | $gradinggradeover |
int | $id |
float | $maxgrade |
the real maximum grade | |
float null | $realgrade = null |
the real received grade | |
stdClass null | $reviewer = null |
reviewer user info | |
int | $submissionid |
int | $timecreated |
int | $timemodified |
string | $title = '' |
the optional title of the assessment | |
moodle_url | $url |
int | $weight |
workshop | $workshop |
Protected Member Functions | |
validate_raw_record (stdClass $record) | |
Makes sure that we can cook the renderable component from the passed raw database record. | |
Protected Attributes | |
array | $fields |
Represents a rendarable full assessment.
|
inherited |
Adds a new action.
moodle_url | $url | action URL |
string | $label | action label |
string | $method | get|post |
workshop_assessment::get_overall_feedback_attachments | ( | ) |
Prepares the list of overall feedback attachments.
Returns false if overall feedback attachments are not allowed. Otherwise returns list of attachments (may be empty).
bool|array | of stdClass |
workshop_assessment::get_overall_feedback_content | ( | ) |
Format the overall feedback text content.
False is returned if the overall feedback feature is disabled. Null is returned if the overall feedback content has not been found. Otherwise, string with formatted feedback text is returned.
string|bool|null |
|
protectedinherited |
Makes sure that we can cook the renderable component from the passed raw database record.
stdClass | $assessment | full assessment record |
coding_exception | if the caller passed unexpected data |
Reimplemented in workshop_example_assessment, and workshop_example_reference_assessment.
|
protected |