Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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

Tour.

Copyright: 2016 Andrew Nicols <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 115 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions


Functions that are not part of a class:

tool_usertours_inplace_editable($itemtype, $itemid, $newvalue)   X-Ref
Manage inplace editable saves.

return: inplace_editable
param: string $itemtype The type of item.
param: int $itemid The ID of the item.
param: mixed $newvalue The new value

tool_usertours_extend_navigation_user()   X-Ref
Extend the user navigation to bootstrap tours.


tool_usertours_before_footer()   X-Ref
Add JS to bootstrap tours. Only in Moodle 3.3+


tool_usertours_get_fontawesome_icon_map()   X-Ref
Map icons for font-awesome themes.


tool_usertours_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = [])   X-Ref
Serves any files associated with the user tour content.

return: bool Returns false if we don't find a file.
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