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 39 and 311]

(no description)

File Size: 322 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 mod/feedback/item/info/info_form.php

Defines 1 class


Class: feedback_item_info  - 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|false $groupid
param: int $courseid
return: stdClass

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_current_value($item, $feedback, $courseid)   X-Ref
Calculates the value of the item (time, course, course category)

param: stdClass $item
param: stdClass $feedback
param: int $courseid
return: string

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

param: stdClass $item
param: mod_feedback_complete_form $form

create_value($value)   X-Ref
Converts the value from complete_form data to the string value that is stored in the db.

param: mixed $value element from mod_feedback_complete_form::get_data() with the name $item->typ.'_'.$item->id
return: string

can_switch_require()   X-Ref
No description

get_data_for_external($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