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


Workshop module renderer class
Definition at line 35 of file renderer.php.
Helper function returning the n-th item of the array
| array | $a | |
| int | $n | from 0 to m, where m is th number of items in the array |
Definition at line 910 of file renderer.php.

| static fullname_format | ( | ) | [static, protected] |
Tries to guess the fullname format set at the site
Definition at line 924 of file renderer.php.
| helper_grading_report_assessment | ( | $ | assessment, |
| $ | shownames, | ||
| array $ | userinfo, | ||
| $ | separator | ||
| ) | [protected] |
| stdClass | null | $assessment | |
| bool | $shownames | |
| string | $separator | between the grade and the reviewer/author |
Definition at line 827 of file renderer.php.


| helper_grading_report_grade | ( | $ | grade, |
| $ | over = null |
||
| ) | [protected] |
Formats the aggreagated grades
Definition at line 871 of file renderer.php.

| helper_grading_report_participant | ( | stdclass $ | participant, |
| array $ | userinfo | ||
| ) | [protected] |
| stdClass | $participant | |
| array | $userinfo |
Definition at line 794 of file renderer.php.


| helper_grading_report_submission | ( | stdclass $ | participant | ) | [protected] |
| stdClass | $participant |
Definition at line 806 of file renderer.php.


| helper_sortable_heading | ( | $ | text, |
| $ | sortid = null, |
||
| $ | sortby = null, |
||
| $ | sorthow = null |
||
| ) | [protected] |
Renders a text with icons to sort by the given column
This is intended for table headings.
| string | $text | The heading text |
| string | $sortid | The column id used for sorting |
| string | $sortby | Currently sorted by (column id) |
| string | $sorthow | Currently sorted how (ASC|DESC) |
Definition at line 769 of file renderer.php.


| helper_submission_attachments | ( | $ | submissionid, |
| $ | format = 'html' |
||
| ) | [protected] |
Renders a list of files attached to the submission
If format==html, then format a html string. If format==text, then format a text-only string. Otherwise, returns html for non-images and html to display the image inline.
| int | $submissionid | submission identifier |
| string | format the format of the returned string - html|text |
Definition at line 666 of file renderer.php.


| helper_user_plan_tasks | ( | array $ | tasks | ) | [protected] |
Renders the tasks for the single phase in the user plan
| stdClass | $tasks |
Definition at line 730 of file renderer.php.


| static moodleform | ( | moodleform $ | mform | ) | [static, protected] |
Helper method dealing with the fact we can not just fetch the output of moodleforms
| moodleform | $mform |
Definition at line 893 of file renderer.php.

| render_workshop_allocation_init_result | ( | workshop_allocation_init_result $ | result | ) | [protected] |
Renders the result of the submissions allocation process
| workshop_allocation_init_result |
Definition at line 325 of file renderer.php.

| render_workshop_assessment | ( | workshop_assessment $ | assessment | ) | [protected] |
Renders the full assessment
| workshop_assessment | $assessment |
Definition at line 551 of file renderer.php.


| render_workshop_example_assessment | ( | workshop_example_assessment $ | assessment | ) | [protected] |
Renders the assessment of an example submission
| workshop_example_assessment | $assessment |
Definition at line 638 of file renderer.php.

| render_workshop_example_reference_assessment | ( | workshop_example_reference_assessment $ | assessment | ) | [protected] |
Renders the reference assessment of an example submission
| workshop_example_reference_assessment | $assessment |
Definition at line 648 of file renderer.php.

| render_workshop_example_submission | ( | workshop_example_submission $ | example | ) | [protected] |
Renders full workshop example submission
| workshop_example_submission | $example |
Definition at line 216 of file renderer.php.

| render_workshop_example_submission_summary | ( | workshop_example_submission_summary $ | summary | ) | [protected] |
Renders short summary of the example submission
| workshop_example_submission_summary | $summary |
Definition at line 243 of file renderer.php.

| render_workshop_feedback_author | ( | workshop_feedback_author $ | feedback | ) | [protected] |
Renders the feedback for the author of the submission
| workshop_feedback_author | $feedback |
Definition at line 506 of file renderer.php.
| render_workshop_feedback_reviewer | ( | workshop_feedback_reviewer $ | feedback | ) | [protected] |
Renders the feedback for the reviewer of the submission
| workshop_feedback_reviewer | $feedback |
Definition at line 516 of file renderer.php.
| render_workshop_grading_report | ( | workshop_grading_report $ | gradingreport | ) | [protected] |
Renders the workshop grading report
| workshop_grading_report | $gradingreport |
Definition at line 358 of file renderer.php.

| render_workshop_message | ( | workshop_message $ | message | ) | [protected] |
Renders workshop message
| workshop_message | $message | to display |
Definition at line 47 of file renderer.php.

| render_workshop_submission | ( | workshop_submission $ | submission | ) | [protected] |
Renders full workshop submission
| workshop_submission | $submission |
Definition at line 84 of file renderer.php.

| render_workshop_submission_summary | ( | workshop_submission_summary $ | summary | ) | [protected] |
Renders short summary of the submission
| workshop_submission_summary | $summary |
Definition at line 152 of file renderer.php.

| render_workshop_user_plan | ( | workshop_user_plan $ | plan | ) | [protected] |
Renders the user plannner tool
| workshop_user_plan | $plan | prepared for the user |
Definition at line 282 of file renderer.php.
