Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are 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.