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.

Functions used by the health tool.

Copyright: 2013 Marko Vidberg
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 128 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions


Functions that are not part of a class:

tool_health_category_find_missing_parents($categories)   X-Ref
Given a list of categories, this function searches for ones
that have a missing parent category.

param: array $categories List of categories.
return: array List of categories with missing parents.

tool_health_category_list_missing_parents($missingparent)   X-Ref
Generates a list of categories with missing parents.

param: array $missingparent List of categories with missing parents.
return: string Bullet point list of categories with missing parents.

tool_health_category_find_loops($categories)   X-Ref
Given a list of categories, this function searches for ones
that have loops to previous parent categories.

param: array $categories List of categories.
return: array List of categories with loops.

tool_health_category_list_loops($loops)   X-Ref
Generates a list of categories with loops.

param: array $loops List of categories with loops.
return: string Bullet point list of categories with loops.