Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Tour helper. More...
Static Public Member Functions | |
static | bootstrap () |
Handle addition of the tour into the current page. | |
static | bootstrap_reset () |
Add the reset link to the current page. | |
static | count_tours () |
Return the count of all tours. More... | |
static | format_icon_link ($url, $icon, $alt, $iconcomponent='moodle', $options=array()) |
Get a filler icon for display in the actions column of a table. More... | |
static | get_all_filters () |
Get a list of all possible filters. More... | |
static | get_delete_step_link ($stepid) |
Get the link for deleting steps. More... | |
static | get_delete_tour_link ($tourid) |
Get the link used to delete the tour. More... | |
static | get_duplicate_tour_link ($tourid) |
Get the link used to duplicate the tour. More... | |
static | get_edit_step_link ($tourid, $stepid=null, $targettype=null) |
Get the link to edit the step. More... | |
static | get_edit_tour_link ($tourid=null) |
Get the link used to edit the tour. More... | |
static | get_export_tour_link ($tourid) |
Get the link used to export the tour. More... | |
static | get_filler_icon ($options=array()) |
Get a filler icon for display in the actions column of a table. More... | |
static | get_import_tour_link () |
Get the link used to import the tour. More... | |
static | get_list_tour_link () |
Get the link for listing tours. More... | |
static | get_move_step_link ($stepid, $direction=self::MOVE_DOWN) |
Get the link to move the step. More... | |
static | get_move_tour_link ($tourid, $direction=self::MOVE_DOWN) |
Get the link to move the tour. More... | |
static | get_new_step_link ($tourid, $targettype=null) |
Get the link ot create a new step. More... | |
static | get_reset_tour_for_all_link ($tourid) |
Get the link used to reset the tour state for all users. More... | |
static | get_step ($stepid) |
Fetch the specified step. More... | |
static | get_step_from_sortorder ($tourid, $sortorder) |
Fetch the step with the specified sortorder. More... | |
static | get_steps ($tourid) |
Get all of the steps in the tour. More... | |
static | get_tour ($tourid) |
Get the specified tour. More... | |
static | get_tour_from_sortorder ($sortorder) |
Fetch the tour with the specified sortorder. More... | |
static | get_tours () |
Get all of the tours. More... | |
static | get_view_tour_link ($tourid) |
Get the link used to view the tour. More... | |
static | render_stepname_inplace_editable (step $step) |
Render the inplace editable used to edit the step name. More... | |
static | render_tourdescription_inplace_editable (tour $tour) |
Render the inplace editable used to edit the tour description. More... | |
static | render_tourenabled_inplace_editable (tour $tour) |
Render the inplace editable used to edit the tour enable state. More... | |
static | render_tourname_inplace_editable (tour $tour) |
Render the inplace editable used to edit the tour name. More... | |
static | reset_tour_sortorder () |
Reset the sortorder for all tours. | |
Public Attributes | |
MOVE_DOWN const | MOVE_DOWN = 1 |
MOVE_UP const | MOVE_UP = -1 |
Tour helper.
|
static |
Return the count of all tours.
int |
|
static |
Get a filler icon for display in the actions column of a table.
string | $url | The URL for the icon. |
string | $icon | The icon identifier. |
string | $alt | The alt text for the icon. |
string | $iconcomponent | The icon component. |
array | $options | Display options. |
string |
|
static |
Get a list of all possible filters.
array |
|
static |
Get the link for deleting steps.
int | $stepid | The ID of the step to display. |
moodle_url | The URL. |
|
static |
Get the link used to delete the tour.
int | $tourid | The ID of the tour to delete. |
moodle_url | The URL. |
|
static |
Get the link used to duplicate the tour.
int | $tourid | The ID of the tour to duplicate. |
moodle_url | The URL. |
|
static |
Get the link to edit the step.
If no stepid is specified, then a link to create a new step is provided. The $targettype must be specified in this case.
int | $tourid | The tour that the step belongs to. |
int | $stepid | The step ID. |
int | $targettype | The type of step. |
moodle_url |
|
static |
Get the link used to edit the tour.
int | $tourid | The ID of the tour to edit. |
moodle_url | The URL. |
|
static |
Get the link used to export the tour.
int | $tourid | The ID of the tour to export. |
moodle_url | The URL. |
|
static |
Get a filler icon for display in the actions column of a table.
array | $options | Display options. |
string |
|
static |
Get the link used to import the tour.
moodle_url | The URL. |
|
static |
Get the link for listing tours.
moodle_url | The URL. |
|
static |
Get the link to move the step.
int | $stepid | The step ID. |
int | $direction | The direction to move in |
moodle_url |
|
static |
Get the link to move the tour.
int | $tourid | The tour ID. |
int | $direction | The direction to move in |
moodle_url |
|
static |
Get the link ot create a new step.
int | $tourid | The ID of the tour to attach this step to. |
int | $targettype | The type of target. |
moodle_url | The required URL. |
|
static |
Get the link used to reset the tour state for all users.
int | $tourid | The ID of the tour to display. |
moodle_url | The URL. |
|
static |
Fetch the specified step.
int | $stepid | The id of the step to fetch. |
step |
|
static |
Fetch the step with the specified sortorder.
int | $tourid | The tour that the step belongs to. |
int | $sortorder | The sortorder of the step. |
step |
|
static |
Get all of the steps in the tour.
int | $tourid | The tour that the step belongs to. |
stdClass[] |
|
static |
Get the specified tour.
int | $tourid | The tour that the step belongs to. |
stdClass |
|
static |
Fetch the tour with the specified sortorder.
int | $sortorder | The sortorder of the tour. |
tour |
|
static |
Get all of the tours.
stdClass[] |
|
static |
Get the link used to view the tour.
int | $tourid | The ID of the tour to display. |
moodle_url | The URL. |
|
static |
Render the inplace editable used to edit the step name.
step | $step | The step to edit. |
string |
|
static |
Render the inplace editable used to edit the tour description.
tour | $tour | The tour to edit. |
string |
|
static |
Render the inplace editable used to edit the tour enable state.
tour | $tour | The tour to edit. |
string |
|
static |
Render the inplace editable used to edit the tour name.
tour | $tour | The tour to edit. |
string |