Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

(no description)

File Size: 501 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 mod/feedback/item/multichoicerated/multichoicerated_form.php

Defines 1 class


Class: feedback_item_multichoicerated  - X-Ref

build_editform($item, $feedback, $cm)   X-Ref
No description

save_item()   X-Ref
No description

get_analysed($item, $groupid = false, $courseid = false)   X-Ref
Helper function for collected data, both for analysis page and export to excel

param: stdClass $item the db-object from feedback_item
param: int $groupid
param: int $courseid
return: array

get_printval($item, $value)   X-Ref
No description

print_analysed($item, $itemnr = '', $groupid = false, $courseid = false)   X-Ref
No description

excelprint_item(&$worksheet, $row_offset,$xls_formats, $item,$groupid, $courseid = false)   X-Ref
No description

get_options($item)   X-Ref
Options for the multichoice element

param: stdClass $item
return: array

complete_form_element($item, $form)   X-Ref
Adds an input element to the complete form

param: stdClass $item
param: mod_feedback_complete_form $form

compare_value($item, $dbvalue, $dependvalue)   X-Ref
Compares the dbvalue with the dependvalue

param: stdClass $item
param: string $dbvalue is the value input by user in the format as it is stored in the db
param: string $dependvalue is the value that it needs to be compared against

get_info($item)   X-Ref
No description

prepare_presentation_values($linesep1,$linesep2,$valuestring,$valuesep1,$valuesep2)   X-Ref
No description

prepare_presentation_values_print($valuestring, $valuesep1, $valuesep2)   X-Ref
No description

prepare_presentation_values_save($valuestring, $valuesep1, $valuesep2)   X-Ref
No description

set_ignoreempty($item, $ignoreempty=true)   X-Ref
No description

ignoreempty($item)   X-Ref
No description

set_hidenoselect($item, $hidenoselect=true)   X-Ref
No description

hidenoselect($item)   X-Ref
No description

get_analysed_for_external($item, $groupid = false, $courseid = false)   X-Ref
Return the analysis data ready for external functions.

param: stdClass $item     the item (question) information
param: int      $groupid  the group id to filter data (optional)
param: int      $courseid the course id (optional)
return: array an array of data with non scalar types json encoded