Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

Database activity renderer.

Copyright: 2010 Sam Hemelryk
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 314 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: mod_data_renderer  - X-Ref

import_setting_mappings($datamodule, data_preset_importer $importer)   X-Ref
Rendering setting and mapping page to import a preset.

param: stdClass $datamodule  Database module to import to.
param: data_preset_importer $importer Importer instance to use for the importing.
return: string

importing_preset(stdClass $datamodule, \mod_data\local\importer\preset_importer $importer)   X-Ref
Importing a preset on a database module.

param: stdClass $datamodule  Database module to import to.
param: \mod_data\local\importer\preset_importer $importer Importer instance to use for the importing.
return: string

render_fields_action_bar(\mod_data\output\fields_action_bar $actionbar)   X-Ref
Renders the action bar for the field page.

param: \mod_data\output\fields_action_bar $actionbar
return: string The HTML output

render_fields_footer(manager $manager)   X-Ref
Renders the fields page footer.

param: manager $manager the instance manager
return: string The HTML output

render_view_action_bar(\mod_data\output\view_action_bar $actionbar)   X-Ref
Renders the action bar for the view page.

param: \mod_data\output\view_action_bar $actionbar
return: string The HTML output

render_templates_action_bar(\mod_data\output\templates_action_bar $actionbar)   X-Ref
Renders the action bar for the template page.

param: \mod_data\output\templates_action_bar $actionbar
return: string The HTML output

render_presets_action_bar(\mod_data\output\presets_action_bar $actionbar)   X-Ref
Renders the action bar for the preset page.

param: \mod_data\output\presets_action_bar $actionbar
return: string The HTML output

render_presets(\mod_data\output\presets $presets)   X-Ref
Renders the presets table in the preset page.

param: \mod_data\output\presets $presets
return: string The HTML output

render_defaulttemplate(\mod_data\output\defaulttemplate $template)   X-Ref
Renders the default template.

param: \mod_data\output\defaulttemplate $template
return: string The HTML output

render_database_zero_state(\mod_data\manager $manager)   X-Ref
Renders the action bar for the zero state (no fields created) page.

param: \mod_data\manager $manager The manager instance.
return: string The HTML output

render_empty_database(\mod_data\manager $manager)   X-Ref
Renders the action bar for an empty database view page.

param: \mod_data\manager $manager The manager instance.
return: string The HTML output

render_fields_zero_state(\mod_data\manager $manager)   X-Ref
Renders the action bar for the zero state (no fields created) page.

param: \mod_data\manager $manager The manager instance.
return: string The HTML output

render_templates_zero_state(\mod_data\manager $manager)   X-Ref
Renders the action bar for the templates zero state (no fields created) page.

param: \mod_data\manager $manager The manager instance.
return: string The HTML output