See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]
Workshop module renderering methods are defined here
Copyright: | 2009 David Mudrak <david.mudrak@gmail.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 1186 lines (49 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
mod_workshop_renderer:: (29 methods):
render_allocation_menu()
render_workshop_message()
render_workshop_submission()
render_workshop_submission_summary()
render_workshop_example_submission()
render_workshop_example_submission_summary()
render_workshop_user_plan()
render_workshop_allocation_result()
render_workshop_grading_report()
render_workshop_feedback_author()
render_workshop_feedback_reviewer()
helper_render_feedback()
render_workshop_assessment()
render_workshop_example_assessment()
render_workshop_example_reference_assessment()
overall_feedback()
perpage_selector()
initials_bars()
render_workshop_final_grades()
helper_submission_attachments()
helper_user_plan_tasks()
helper_sortable_heading()
helper_grading_report_participant()
helper_grading_report_submission()
helper_grading_report_assessment()
helper_grading_report_grade()
moodleform()
array_nth()
fullname_format()
Class: mod_workshop_renderer - X-Ref
Workshop module renderer classrender_allocation_menu(\mod_workshop\output\actionbar $actionbar) X-Ref |
Renders the tertiary nav for the allocation pages param: \mod_workshop\output\actionbar $actionbar return: bool|string the rendered output |
render_workshop_message(workshop_message $message) X-Ref |
Renders workshop message param: workshop_message $message to display return: string html code |
render_workshop_submission(workshop_submission $submission) X-Ref |
Renders full workshop submission param: workshop_submission $submission return: string HTML |
render_workshop_submission_summary(workshop_submission_summary $summary) X-Ref |
Renders short summary of the submission param: workshop_submission_summary $summary return: string text to be echo'ed |
render_workshop_example_submission(workshop_example_submission $example) X-Ref |
Renders full workshop example submission param: workshop_example_submission $example return: string HTML |
render_workshop_example_submission_summary(workshop_example_submission_summary $summary) X-Ref |
Renders short summary of the example submission param: workshop_example_submission_summary $summary return: string text to be echo'ed |
render_workshop_user_plan(workshop_user_plan $plan) X-Ref |
Renders the user plannner tool param: workshop_user_plan $plan prepared for the user return: string html code to be displayed |
render_workshop_allocation_result(workshop_allocation_result $result) X-Ref |
Renders the result of the submissions allocation process param: workshop_allocation_result $result as returned by the allocator's init() method return: string HTML to be echoed |
render_workshop_grading_report(workshop_grading_report $gradingreport) X-Ref |
Renders the workshop grading report param: workshop_grading_report $gradingreport return: string html code |
render_workshop_feedback_author(workshop_feedback_author $feedback) X-Ref |
Renders the feedback for the author of the submission param: workshop_feedback_author $feedback return: string HTML |
render_workshop_feedback_reviewer(workshop_feedback_reviewer $feedback) X-Ref |
Renders the feedback for the reviewer of the submission param: workshop_feedback_reviewer $feedback return: string HTML |
helper_render_feedback($feedback) X-Ref |
Helper method to rendering feedback param: workshop_feedback_author|workshop_feedback_reviewer $feedback return: string HTML |
render_workshop_assessment(workshop_assessment $assessment) X-Ref |
Renders the full assessment param: workshop_assessment $assessment return: string HTML |
render_workshop_example_assessment(workshop_example_assessment $assessment) X-Ref |
Renders the assessment of an example submission param: workshop_example_assessment $assessment return: string HTML |
render_workshop_example_reference_assessment(workshop_example_reference_assessment $assessment) X-Ref |
Renders the reference assessment of an example submission param: workshop_example_reference_assessment $assessment return: string HTML |
overall_feedback(workshop_assessment $assessment) X-Ref |
Renders the overall feedback for the author of the submission param: workshop_assessment $assessment return: string HTML |
perpage_selector($current=10) X-Ref |
Renders a perpage selector for workshop listings The scripts using this have to define the $PAGE->url prior to calling this and deal with eventually submitted value themselves. param: int $current current value of the perpage parameter return: string HTML |
initials_bars(workshop $workshop, moodle_url $url) X-Ref |
Render the initials bars for workshop. param: workshop $workshop the current workshop of initial bars. param: moodle_url $url base URL object. return: string HTML. |
render_workshop_final_grades(workshop_final_grades $grades) X-Ref |
Renders the user's final grades param: workshop_final_grades $grades with the info about grades in the gradebook return: string HTML |
helper_submission_attachments($submissionid, $format = 'html') X-Ref |
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. param: int $submissionid submission identifier param: string format the format of the returned string - html|text return: string formatted text to be echoed |
helper_user_plan_tasks(array $tasks) X-Ref |
Renders the tasks for the single phase in the user plan param: stdClass $tasks return: string html code |
helper_sortable_heading($text, $sortid=null, $sortby=null, $sorthow=null) X-Ref |
Renders a text with icons to sort by the given column This is intended for table headings. param: string $text The heading text param: string $sortid The column id used for sorting param: string $sortby Currently sorted by (column id) param: string $sorthow Currently sorted how (ASC|DESC) return: string |
helper_grading_report_participant(stdclass $participant, array $userinfo) X-Ref |
param: stdClass $participant param: array $userinfo return: string |
helper_grading_report_submission(stdclass $participant) X-Ref |
param: stdClass $participant return: string |
helper_grading_report_assessment($assessment, $shownames, array $userinfo, $separator) X-Ref |
param: stdClass|null $assessment param: bool $shownames param: string $separator between the grade and the reviewer/author return: string |
helper_grading_report_grade($grade, $over=null) X-Ref |
Formats the aggreagated grades |
moodleform(moodleform $mform) X-Ref |
Helper method dealing with the fact we can not just fetch the output of moodleforms param: moodleform $mform return: string HTML |
array_nth(array $a, $n) X-Ref |
Helper function returning the n-th item of the array param: array $a param: int $n from 0 to m, where m is th number of items in the array return: mixed the $n-th element of $a |
fullname_format() X-Ref |
Tries to guess the fullname format set at the site return: string fl|lf |