Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 39 and 400]

(no description)

File Size: 329 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 mod/feedback/item/numeric/numeric_form.php

Defines 1 class


Class: feedback_item_numeric  - 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

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

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

format_float($value)   X-Ref
Prints the float nicely in the localized format

Similar to format_float() but automatically calculates the number of decimal places

return: string
param: float $value The float to print

get_boundaries_for_display($item)   X-Ref
Returns human-readable boundaries (min - max)

return: string
param: stdClass $item

get_display_name_postfix($item)   X-Ref
Returns the postfix to be appended to the display name that is based on other settings

return: string
param: stdClass $item

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($data)   X-Ref
No description

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

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