Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Static Public Member Functions | |
static | bootstrap () |
Handle addition of the tour into the current page. | |
static | count_tours () |
Return the count of all tours. | |
static | format_icon_link ($url, $icon, $alt, $iconcomponent='moodle', $options=[]) |
Get a filler icon for display in the actions column of a table. | |
static | get_all_clientside_filters () |
Get a list of all clientside filters. | |
static | get_all_filters () |
Get a list of all possible filters. | |
static | get_clientside_filter_module_names (array $filters) |
Get the JS module names for the filters. | |
static | get_delete_step_link ($stepid) |
Get the link for deleting steps. | |
static | get_delete_tour_link ($tourid) |
Get the link used to delete the tour. | |
static | get_duplicate_tour_link ($tourid) |
Get the link used to duplicate the tour. | |
static | get_edit_step_link ($tourid, $stepid=null, $targettype=null) |
Get the link to edit the step. | |
static | get_edit_tour_link ($tourid=null) |
Get the link used to edit the tour. | |
static | get_export_tour_link ($tourid) |
Get the link used to export the tour. | |
static | get_filler_icon ($options=[]) |
Get a filler icon for display in the actions column of a table. | |
static | get_import_tour_link () |
Get the link used to import the tour. | |
static | get_list_tour_link () |
Get the link for listing tours. | |
static | get_move_step_link ($stepid, $direction=self::MOVE_DOWN) |
Get the link to move the step. | |
static | get_move_tour_link ($tourid, $direction=self::MOVE_DOWN) |
Get the link to move the tour. | |
static | get_new_step_link ($tourid, $targettype=null) |
Get the link ot create a new step. | |
static | get_reset_tour_for_all_link ($tourid) |
Get the link used to reset the tour state for all users. | |
static | get_step ($stepid) |
Fetch the specified step. | |
static | get_step_from_sortorder ($tourid, $sortorder) |
Fetch the step with the specified sortorder. | |
static | get_steps ($tourid) |
Get all of the steps in the tour. | |
static | get_string_from_input (string $content) |
Attempt to fetch any matching langstring if the content is in the format identifier,component. | |
static | get_tour ($tourid) |
Get the specified tour. | |
static | get_tour_from_sortorder ($sortorder) |
Fetch the tour with the specified sortorder. | |
static | get_tours () |
Get all of the tours. | |
static | get_view_tour_link ($tourid) |
Get the link used to view the tour. | |
static | is_language_string_from_input (string $string) |
Check if the given string contains any matching langstring. | |
static | render_stepname_inplace_editable (step $step) |
Render the inplace editable used to edit the step name. | |
static | render_tourdescription_inplace_editable (tour $tour) |
Render the inplace editable used to edit the tour description. | |
static | render_tourenabled_inplace_editable (tour $tour) |
Render the inplace editable used to edit the tour enable state. | |
static | render_tourname_inplace_editable (tour $tour) |
Render the inplace editable used to edit the tour name. | |
static | reset_tour_sortorder () |
Reset the sortorder for all tours. | |
Public Attributes | |
MOVE_DOWN const | MOVE_DOWN = 1 |
MOVE_UP const | MOVE_UP = -1 |
Protected Attributes | |
string const | LANG_STRING_REGEX = '|^([a-zA-Z][a-zA-Z0-9\.:/_-]*),([a-zA-Z][a-zA-Z0-9::.:/_-]*)$|' |
Regex to check any matching lang string. | |
|
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 clientside filters.
array |
|
static |
Get a list of all possible filters.
array |
|
static |
Get the JS module names for the filters.
array | $filters |
array |
coding_exception |
|
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. |
step[] |
|
static |
Attempt to fetch any matching langstring if the content is in the format identifier,component.
string | $content | Step's content or Tour's name or Tour's description |
string | Processed content, any langstring will be converted to translated text |
|
static |
Get the specified tour.
int | $tourid | The tour that the step belongs to. |
tour |
|
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 |
Check if the given string contains any matching langstring.
string | $string |
bool |
|
static |
Render the inplace editable used to edit the step name.
step | $step | The step to edit. |
inplace_editable |
|
static |
Render the inplace editable used to edit the tour description.
tour | $tour | The tour to edit. |
inplace_editable |
|
static |
Render the inplace editable used to edit the tour enable state.
tour | $tour | The tour to edit. |
inplace_editable |
|
static |
Render the inplace editable used to edit the tour name.
tour | $tour | The tour to edit. |
inplace_editable |