Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
tool_analytics\output\restorable_models Class Reference

Represents the list of default models that can be eventually restored. More...

Inheritance diagram for tool_analytics\output\restorable_models:

Public Member Functions

 __construct (array $models)
 Instantiate an object of this class.
 
 export_for_template (\renderer_base $output)
 Export the list of models to be rendered.
 

Protected Member Functions

 component_name (string $component)
 Return a human readable name for the given frankenstyle component.
 

Protected Attributes

array $models
 

Detailed Description

Represents the list of default models that can be eventually restored.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

tool_analytics\output\restorable_models::__construct ( array $models)

Instantiate an object of this class.

Parameters
array$modelsList of models as returned by core_analytics::manager::load_default_models_for_all_components()

Member Function Documentation

◆ component_name()

tool_analytics\output\restorable_models::component_name ( string $component)
protected

Return a human readable name for the given frankenstyle component.

Parameters
string$componentFrankenstyle component such as 'core', 'core_analytics' or 'mod_workshop'
Return values
stringHuman readable name of the component

◆ export_for_template()

tool_analytics\output\restorable_models::export_for_template ( \renderer_base $output)

Export the list of models to be rendered.

Parameters
renderer_base$output
Return values
string

The documentation for this class was generated from the following file: