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 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

Edit a calculated grade item

Copyright: 2007 Petr Skoda
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 220 lines (8 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 1 file
 grade/edit/tree/calculation_form.php

Defines 1 function


Functions that are not part of a class:

get_grade_tree(&$gtree, $element, $current_itemid=null, $errors=null)   X-Ref
Simplified version of the print_grade_tree() recursive function found in grade/edit/tree/index.php
Only prints a tree with a basic icon for each element, and an edit field for
items without an idnumber.

param: object $gtree
param: object $element
param: int $current_itemid The itemid of this page: should be excluded from the tree
param: array $errors An array of idnumbers => error
return: string