Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions
tool_health

Files

file  locallib.php
 Functions used by the health tool.
 
file  provider.php
 Privacy Subsystem implementation for tool_health.
 

Namespaces

 tool_health\privacy
  
 

Classes

class  tool_health\privacy\provider
 Privacy Subsystem for tool_health implementing null_provider. More...
 

Functions

 tool_health_category_find_loops ($categories)
 Given a list of categories, this function searches for ones that have loops to previous parent categories. More...
 
 tool_health_category_find_missing_parents ($categories)
 Given a list of categories, this function searches for ones that have a missing parent category. More...
 
 tool_health_category_list_loops ($loops)
 Generates a list of categories with loops. More...
 
 tool_health_category_list_missing_parents ($missingparent)
 Generates a list of categories with missing parents. More...
 

Detailed Description

Function Documentation

◆ tool_health_category_find_loops()

tool_health_category_find_loops (   $categories)

Given a list of categories, this function searches for ones that have loops to previous parent categories.

Parameters
array$categoriesList of categories.
Return values
arrayList of categories with loops.

◆ tool_health_category_find_missing_parents()

tool_health_category_find_missing_parents (   $categories)

Given a list of categories, this function searches for ones that have a missing parent category.

Parameters
array$categoriesList of categories.
Return values
arrayList of categories with missing parents.

◆ tool_health_category_list_loops()

tool_health_category_list_loops (   $loops)

Generates a list of categories with loops.

Parameters
array$loopsList of categories with loops.
Return values
stringBullet point list of categories with loops.

◆ tool_health_category_list_missing_parents()

tool_health_category_list_missing_parents (   $missingparent)

Generates a list of categories with missing parents.

Parameters
array$missingparentList of categories with missing parents.
Return values
stringBullet point list of categories with missing parents.