Moodle  2.2.1
http://www.collinsharper.com
mod_workshop_renderer Class Reference
Inheritance diagram for mod_workshop_renderer:
Collaboration diagram for mod_workshop_renderer:

Protected Member Functions

 render_workshop_message (workshop_message $message)
 render_workshop_submission (workshop_submission $submission)
 render_workshop_submission_summary (workshop_submission_summary $summary)
 render_workshop_example_submission (workshop_example_submission $example)
 render_workshop_example_submission_summary (workshop_example_submission_summary $summary)
 render_workshop_user_plan (workshop_user_plan $plan)
 render_workshop_allocation_init_result (workshop_allocation_init_result $result)
 render_workshop_grading_report (workshop_grading_report $gradingreport)
 render_workshop_feedback_author (workshop_feedback_author $feedback)
 render_workshop_feedback_reviewer (workshop_feedback_reviewer $feedback)
 render_workshop_assessment (workshop_assessment $assessment)
 render_workshop_example_assessment (workshop_example_assessment $assessment)
 render_workshop_example_reference_assessment (workshop_example_reference_assessment $assessment)
 helper_submission_attachments ($submissionid, $format= 'html')
 helper_user_plan_tasks (array $tasks)
 helper_sortable_heading ($text, $sortid=null, $sortby=null, $sorthow=null)
 helper_grading_report_participant (stdclass $participant, array $userinfo)
 helper_grading_report_submission (stdclass $participant)
 helper_grading_report_assessment ($assessment, $shownames, array $userinfo, $separator)
 helper_grading_report_grade ($grade, $over=null)

Static Protected Member Functions

static moodleform (moodleform $mform)
static array_nth (array $a, $n)
static fullname_format ()

Detailed Description

Workshop module renderer class

Definition at line 35 of file renderer.php.


Member Function Documentation

static array_nth ( array a,
n 
) [static, protected]

Helper function returning the n-th item of the array

Parameters:
array$a
int$nfrom 0 to m, where m is th number of items in the array
Returns:
mixed the $n-th element of $a

Definition at line 910 of file renderer.php.

Here is the caller graph for this function:

static fullname_format ( ) [static, protected]

Tries to guess the fullname format set at the site

Returns:
string fl|lf

Definition at line 924 of file renderer.php.

helper_grading_report_assessment ( assessment,
shownames,
array userinfo,
separator 
) [protected]
Todo:
Highlight the nulls
Parameters:
stdClass | null$assessment
bool$shownames
string$separatorbetween the grade and the reviewer/author
Returns:
string

Definition at line 827 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

helper_grading_report_grade ( grade,
over = null 
) [protected]

Formats the aggreagated grades

Definition at line 871 of file renderer.php.

Here is the caller graph for this function:

helper_grading_report_participant ( stdclass $  participant,
array userinfo 
) [protected]
Parameters:
stdClass$participant
array$userinfo
Returns:
string

Definition at line 794 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

helper_grading_report_submission ( stdclass $  participant) [protected]
Parameters:
stdClass$participant
Returns:
string

Definition at line 806 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
string$textThe heading text
string$sortidThe column id used for sorting
string$sortbyCurrently sorted by (column id)
string$sorthowCurrently sorted how (ASC|DESC)
Returns:
string

Definition at line 769 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
int$submissionidsubmission identifier
stringformat the format of the returned string - html|text
Returns:
string formatted text to be echoed

Definition at line 666 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

helper_user_plan_tasks ( array tasks) [protected]

Renders the tasks for the single phase in the user plan

Parameters:
stdClass$tasks
Returns:
string html code

Definition at line 730 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static moodleform ( moodleform mform) [static, protected]

Helper method dealing with the fact we can not just fetch the output of moodleforms

Parameters:
moodleform$mform
Returns:
string HTML

Definition at line 893 of file renderer.php.

Here is the call graph for this function:

Renders the result of the submissions allocation process

Parameters:
workshop_allocation_init_result
Returns:
string html to be echoed

Definition at line 325 of file renderer.php.

Here is the call graph for this function:

render_workshop_assessment ( workshop_assessment assessment) [protected]

Renders the full assessment

Parameters:
workshop_assessment$assessment
Returns:
string HTML

Definition at line 551 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Renders the assessment of an example submission

Parameters:
workshop_example_assessment$assessment
Returns:
string HTML

Definition at line 638 of file renderer.php.

Here is the call graph for this function:

Renders the reference assessment of an example submission

Parameters:
workshop_example_reference_assessment$assessment
Returns:
string HTML

Definition at line 648 of file renderer.php.

Here is the call graph for this function:

Renders full workshop example submission

Parameters:
workshop_example_submission$example
Returns:
string HTML

Definition at line 216 of file renderer.php.

Here is the call graph for this function:

Renders short summary of the example submission

Parameters:
workshop_example_submission_summary$summary
Returns:
string text to be echo'ed

Definition at line 243 of file renderer.php.

Here is the call graph for this function:

Renders the feedback for the author of the submission

Parameters:
workshop_feedback_author$feedback
Returns:
string HTML

Definition at line 506 of file renderer.php.

Renders the feedback for the reviewer of the submission

Parameters:
workshop_feedback_reviewer$feedback
Returns:
string HTML

Definition at line 516 of file renderer.php.

render_workshop_grading_report ( workshop_grading_report gradingreport) [protected]

Renders the workshop grading report

Parameters:
workshop_grading_report$gradingreport
Returns:
string html code

Definition at line 358 of file renderer.php.

Here is the call graph for this function:

render_workshop_message ( workshop_message message) [protected]

Renders workshop message

Parameters:
workshop_message$messageto display
Returns:
string html code

Definition at line 47 of file renderer.php.

Here is the call graph for this function:

render_workshop_submission ( workshop_submission submission) [protected]

Renders full workshop submission

Parameters:
workshop_submission$submission
Returns:
string HTML

Definition at line 84 of file renderer.php.

Here is the call graph for this function:

Renders short summary of the submission

Parameters:
workshop_submission_summary$summary
Returns:
string text to be echo'ed

Definition at line 152 of file renderer.php.

Here is the call graph for this function:

Renders the user plannner tool

Parameters:
workshop_user_plan$planprepared for the user
Returns:
string html code to be displayed

Definition at line 282 of file renderer.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations