Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

Web Service functions for steps.

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

Defines 1 class


Class: tour  - X-Ref

Web Service functions for steps.

fetch_and_start_tour($tourid, $context, $pageurl)   X-Ref
Fetch the tour configuration for the specified tour.

param: int     $tourid     The ID of the tour to fetch.
param: int     $context    The Context ID of the current page.
param: string  $pageurl    The path of the current page.
return: array               As described in fetch_and_start_tour_returns

fetch_and_start_tour_parameters()   X-Ref
The parameters for fetch_and_start_tour.

return: external_function_parameters

fetch_and_start_tour_returns()   X-Ref
The return configuration for fetch_and_start_tour.

return: external_single_structure

reset_tour($tourid, $context, $pageurl)   X-Ref
Reset the specified tour for the current user.

param: int     $tourid     The ID of the tour.
param: int     $context    The Context ID of the current page.
param: string  $pageurl    The path of the current page requesting the reset.
return: array               As described in reset_tour_returns

reset_tour_parameters()   X-Ref
The parameters for reset_tour.

return: external_function_parameters

reset_tour_returns()   X-Ref
The return configuration for reset_tour.

return: external_single_structure

complete_tour($tourid, $context, $pageurl, $stepid, $stepindex)   X-Ref
Mark the specified tour as completed for the current user.

param: int     $tourid     The ID of the tour.
param: int     $context    The Context ID of the current page.
param: string  $pageurl    The path of the current page.
param: int     $stepid     The step id
param: int     $stepindex  The step index
return: array               As described in complete_tour_returns

complete_tour_parameters()   X-Ref
The parameters for complete_tour.

return: external_function_parameters

complete_tour_returns()   X-Ref
The return configuration for complete_tour.

return: external_single_structure

step_shown($tourid, $context, $pageurl, $stepid, $stepindex)   X-Ref
Mark the specified toru step as shown for the current user.

param: int     $tourid     The ID of the tour.
param: int     $context    The Context ID of the current page.
param: string  $pageurl    The path of the current page.
param: int     $stepid     The step id
param: int     $stepindex  The step index
return: array               As described in complete_tour_returns

step_shown_parameters()   X-Ref
The parameters for step_shown.

return: external_function_parameters

step_shown_returns()   X-Ref
The return configuration for step_shown.

return: external_single_structure

step_structure_returns()   X-Ref
The standard return structure for a step.

return: external_multiple_structure