[ Index ]

PHP Cross Reference of Moodle 310

title

Body

[close]

/admin/tool/dataprivacy/ -> lib.php (summary)

Data privacy plugin library

Copyright: 2018 onwards Jun Pataleta
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 278 lines (11 kb)
Included or required: 3 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  tool_dataprivacy_myprofile_navigation()
  tool_dataprivacy_standard_footer_html()
  tool_dataprivacy_output_fragment_addpurpose_form()
  tool_dataprivacy_output_fragment_addcategory_form()
  tool_dataprivacy_output_fragment_context_form()
  tool_dataprivacy_output_fragment_contextlevel_form()
  tool_dataprivacy_pluginfile()

Functions
Functions that are not part of a class:

tool_dataprivacy_myprofile_navigation(tree $tree, $user, $iscurrentuser, $course)   X-Ref
Add nodes to myprofile page.

param: tree $tree Tree object
param: stdClass $user User object
param: bool $iscurrentuser
param: stdClass $course Course object
return: bool

tool_dataprivacy_standard_footer_html()   X-Ref
Callback to add footer elements.

return: string HTML footer content

tool_dataprivacy_output_fragment_addpurpose_form($args)   X-Ref
Fragment to add a new purpose.

param: array $args The fragment arguments.
return: string The rendered mform fragment.

tool_dataprivacy_output_fragment_addcategory_form($args)   X-Ref
Fragment to add a new category.

param: array $args The fragment arguments.
return: string The rendered mform fragment.

tool_dataprivacy_output_fragment_context_form($args)   X-Ref
Fragment to edit a context purpose and category.

param: array $args The fragment arguments.
return: string The rendered mform fragment.

tool_dataprivacy_output_fragment_contextlevel_form($args)   X-Ref
Fragment to edit a contextlevel purpose and category.

param: array $args The fragment arguments.
return: string The rendered mform fragment.

tool_dataprivacy_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = array()   X-Ref
Serves any files associated with the data privacy settings.

param: stdClass $course Course object
param: stdClass $cm Course module object
param: context $context Context
param: string $filearea File area for data privacy
param: array $args Arguments
param: bool $forcedownload If we are forcing the download
param: array $options More options
return: bool Returns false if we don't find a file.



Generated: Wed Jan 22 11:59:49 2025 Cross-referenced by PHPXref 0.7.1