Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Tour manager. More...
Public Member Functions | |
execute ($action) | |
This is the entry point for this controller class. More... | |
Static Public Member Functions | |
static | get_current_tour ($reset=false) |
Get the first tour matching the current page URL. More... | |
static | get_matching_tours (\moodle_url $pageurl) |
Get the first tour matching the specified URL. More... | |
static | import_tour_from_json ($json) |
Import the provided tour JSON. More... | |
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. More... | |
delete_tour ($tourid) | |
Delete the tour. More... | |
duplicate_tour ($tourid) | |
Duplicate an existing tour. More... | |
edit_step ($id) | |
Display the edit step form for the specified step. More... | |
edit_tour ($id=null) | |
Print the edit tour page. More... | |
export_tour ($id) | |
Print the export tour page. More... | |
footer () | |
Print out the page footer. More... | |
get_edit_tour_link ($id=null) | |
Return the edit tour link. More... | |
get_import_tour_link () | |
Get the import tour link. More... | |
get_renderer () | |
Helper to fetch the renderer. More... | |
header ($title=null) | |
Print out the page header. More... | |
hide_tour ($tourid) | |
Hide the tour. More... | |
import_tour () | |
Handle tour import. | |
move_step ($id) | |
Move a step up or down. More... | |
move_tour ($id) | |
Move a tour up or down and redirect once complete. More... | |
print_edit_step_link ($tourid, $stepid=null) | |
Print the edit step link. More... | |
print_edit_tour_link ($id=null) | |
Print the edit tour link. More... | |
print_tour_list () | |
Print the the list of tours. | |
reset_tour_for_all ($tourid) | |
Reset the tour state for all users. More... | |
setup_admin_externalpage (string $action) | |
Helper method to initialize admin page, setting appropriate extra URL parameters. More... | |
show_hide_tour ($tourid, $visibility) | |
Show or Hide the tour. More... | |
show_tour ($tourid) | |
Show the tour. More... | |
view_tour ($tourid) | |
Print the view tour page. More... | |
Static Protected Member Functions | |
static | _move_tour (tour $tour, $direction) |
Move a tour up or down. More... | |
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 the first tour matching the current page URL.
bool | $reset | Forcibly update the current tour |
tour |
|
protected |
Return the edit tour link.
int | $id | The ID of the tour |
string |
|
protected |
Get the import tour link.
string |
|
static |
Get the first tour matching the specified URL.
moodle_url | $pageurl | The URL to match. |
tour |
|
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. |