Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(no description)

File Size: 259 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 mod/feedback/item/label/label_form.php

Defines 1 class

feedback_item_label:: (14 methods):
  __construct()
  build_editform()
  save_item()
  print_item()
  get_display_name()
  complete_form_element()
  compare_value()
  postupdate()
  get_hasvalue()
  can_switch_require()
  excelprint_item()
  print_analysed()
  get_printval()
  get_analysed_for_external()


Class: feedback_item_label  - X-Ref

__construct()   X-Ref
Constructor


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

save_item()   X-Ref
No description

print_item($item)   X-Ref
prepares the item for output or export to file

param: stdClass $item
return: string

get_display_name($item, $withpostfix = true)   X-Ref

param: stdClass $item
param: bool|true $withpostfix
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

compare_value($item, $dbvalue, $dependvalue)   X-Ref
No description

postupdate($item)   X-Ref
No description

get_hasvalue()   X-Ref
No description

can_switch_require()   X-Ref
No description

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

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

get_printval($item, $value)   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