| Moodle APIs 4.3
    Moodle 4.3.6 (Build: 20240812) | 
Tour manager. More...
| Public Member Functions | |
| execute ($action) | |
| This is the entry point for this controller class. | |
| Static Public Member Functions | |
| static | get_current_tours ($reset=false) | 
| Get all tours for the current page URL. | |
| static | get_matching_tours (\moodle_url $pageurl) | 
| Get all tours matching the specified URL. | |
| static | import_tour_from_json ($json) | 
| Import the provided tour JSON. | |
| static | update_shipped_tours () | 
| Make sure all of the default tours that are shipped with Moodle are created and up to date with the latest version. | |
| Public Attributes | |
| ACTION_DELETESTEP const | ACTION_DELETESTEP = 'deletestep' | 
| The action to delete a step. | |
| ACTION_DELETETOUR const | ACTION_DELETETOUR = 'deletetour' | 
| The action to delete the tour. | |
| ACTION_DUPLICATETOUR const | ACTION_DUPLICATETOUR = 'duplicatetour' | 
| The action to duplicate the tour. | |
| ACTION_EDITSTEP const | ACTION_EDITSTEP = 'editstep' | 
| The action to edit step configuration. | |
| ACTION_EDITTOUR const | ACTION_EDITTOUR = 'edittour' | 
| The action to edit the tour. | |
| ACTION_EXPORTTOUR const | ACTION_EXPORTTOUR = 'exporttour' | 
| The action to export the tour. | |
| ACTION_HIDETOUR const | ACTION_HIDETOUR = 'hidetour' | 
| The action to hide a tour. | |
| ACTION_IMPORTTOUR const | ACTION_IMPORTTOUR = 'importtour' | 
| The action to import the tour. | |
| ACTION_LISTTOURS const | ACTION_LISTTOURS = 'listtours' | 
| The action to get the list of tours. | |
| ACTION_MOVESTEP const | ACTION_MOVESTEP = 'movestep' | 
| The action to move a step up or down. | |
| ACTION_MOVETOUR const | ACTION_MOVETOUR = 'movetour' | 
| The action to move a tour up or down. | |
| ACTION_NEWSTEP const | ACTION_NEWSTEP = 'newstep' | 
| The action to create a new step. | |
| ACTION_NEWTOUR const | ACTION_NEWTOUR = 'newtour' | 
| The action to create a new tour. | |
| ACTION_RESETFORALL const | ACTION_RESETFORALL = 'resetforall' | 
| ACTION_SHOWTOUR const | ACTION_SHOWTOUR = 'showtour' | 
| The action to show a tour. | |
| ACTION_VIEWSTEP const | ACTION_VIEWSTEP = 'viewstep' | 
| The action to view a step. | |
| ACTION_VIEWTOUR const | ACTION_VIEWTOUR = 'viewtour' | 
| The action to view the tour. | |
| CONFIG_SHIPPED_FILENAME const | CONFIG_SHIPPED_FILENAME = 'shipped_filename' | 
| CONFIG_SHIPPED_TOUR const | CONFIG_SHIPPED_TOUR = 'shipped_tour' | 
| CONFIG_SHIPPED_VERSION const | CONFIG_SHIPPED_VERSION = 'shipped_version' | 
| Protected Member Functions | |
| delete_step ($stepid) | |
| Delete the step. | |
| delete_tour ($tourid) | |
| Delete the tour. | |
| duplicate_tour ($tourid) | |
| Duplicate an existing tour. | |
| edit_step ($id) | |
| Display the edit step form for the specified step. | |
| edit_tour ($id=null) | |
| Print the edit tour page. | |
| export_tour ($id) | |
| Print the export tour page. | |
| footer () | |
| Print out the page footer. | |
| get_edit_tour_link ($id=null) | |
| Return the edit tour link. | |
| get_import_tour_link () | |
| Get the import tour link. | |
| get_renderer () | |
| Helper to fetch the renderer. | |
| header ($title=null) | |
| Print out the page header. | |
| hide_tour ($tourid) | |
| Hide the tour. | |
| import_tour () | |
| Handle tour import. | |
| move_step ($id) | |
| Move a step up or down. | |
| move_tour ($id) | |
| Move a tour up or down and redirect once complete. | |
| print_edit_step_link ($tourid, $stepid=null) | |
| Print the edit step link. | |
| print_edit_tour_link ($id=null) | |
| Print the edit tour link. | |
| print_tour_list () | |
| Print the the list of tours. | |
| reset_tour_for_all ($tourid) | |
| Reset the tour state for all users. | |
| setup_admin_externalpage (string $action) | |
| Helper method to initialize admin page, setting appropriate extra URL parameters. | |
| show_hide_tour ($tourid, $visibility) | |
| Show or Hide the tour. | |
| show_tour ($tourid) | |
| Show the tour. | |
| view_tour ($tourid) | |
| Print the view tour page. | |
| Static Protected Member Functions | |
| static | _move_tour (tour $tour, $direction) | 
| Move a tour up or down. | |
Tour manager.
| 
 | staticprotected | 
Move a tour up or down.
| tour | $tour | The tour to move. | 
| int | $direction | 
| 
 | protected | 
Delete the step.
| int | $stepid | The ID of the step to remove. | 
| 
 | protected | 
Delete the tour.
| int | $tourid | The ID of the tour to remove. | 
| 
 | protected | 
Duplicate an existing tour.
| int | $tourid | The ID of the tour to duplicate. | 
| 
 | protected | 
Display the edit step form for the specified step.
| int | $id | The step to edit. | 
| 
 | protected | 
Print the edit tour page.
| int | $id | The ID of the tour | 
| tool_usertours\manager::execute | ( | $action | ) | 
This is the entry point for this controller class.
| string | $action | The action to perform. | 
| 
 | protected | 
Print the export tour page.
| int | $id | The ID of the tour | 
| 
 | protected | 
Print out the page footer.
| void | 
| 
 | static | 
Get all tours for the current page URL.
| bool | $reset | Forcibly update the current tours | 
| array | 
| 
 | protected | 
Return the edit tour link.
| int | $id | The ID of the tour | 
| string | 
| 
 | protected | 
Get the import tour link.
| string | 
| 
 | static | 
Get all tours matching the specified URL.
| moodle_url | $pageurl | The URL to match. | 
| array | 
| 
 | protected | 
Helper to fetch the renderer.
| renderer | 
| 
 | protected | 
Print out the page header.
| string | $title | The title to display. | 
| 
 | protected | 
Hide the tour.
| int | $tourid | The ID of the tour to display. | 
| 
 | static | 
Import the provided tour JSON.
| string | $json | The tour configuration. | 
| tour | 
| 
 | protected | 
Move a step up or down.
| int | $id | The step to move. | 
| 
 | protected | 
Move a tour up or down and redirect once complete.
| int | $id | The tour to move. | 
| 
 | protected | 
Print the edit step link.
| int | $tourid | The ID of the tour. | 
| int | $stepid | The ID of the step. | 
| string | 
| 
 | protected | 
Print the edit tour link.
| int | $id | The ID of the tour | 
| 
 | protected | 
Reset the tour state for all users.
| int | $tourid | The ID of the tour to remove. | 
| 
 | protected | 
Helper method to initialize admin page, setting appropriate extra URL parameters.
| string | $action | 
| 
 | protected | 
Show or Hide the tour.
| int | $tourid | The ID of the tour to display. | 
| int | $visibility | The intended visibility. | 
| 
 | protected | 
Show the tour.
| int | $tourid | The ID of the tour to display. | 
| 
 | protected | 
Print the view tour page.
| int | $tourid | The ID of the tour to display. |