Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
tool_usertours

Files

file  access.php
 Plugin capabilities.
 
file  base.php
 Target base.
 
file  base.php
 Filter base.
 
file  behat_tool_usertours.php
 User tour related steps definitions.
 
file  block.php
 Block target.
 
file  cache.php
 Cache manager.
 
file  caches.php
 Plugin cache definitions.
 
file  category.php
 Category filter.
 
file  configuration.php
 Step configuration detail class.
 
file  course.php
 Course filter.
 
file  courseformat.php
 Course format filter.
 
file  editstep.php
 Form for editing steps.
 
file  edittour.php
 Form for editing tours.
 
file  helper.php
 Tour helper.
 
file  helper_trait.php
 Helpers for unit tests.
 
file  importtour.php
 Form for editing tours.
 
file  install.php
 Install code for tours.
 
file  lib.php
 Tour.
 
file  manager.php
 Tour manager.
 
file  provider.php
 Privacy Subsystem implementation for tool_usertours.
 
file  renderer.php
 Renderer.
 
file  role.php
 Theme filter.
 
file  selector.php
 Selector target.
 
file  services.php
 List of Web Services for the tool_usertours plugin.
 
file  settings.php
 Settings page.
 
file  step.php
 Step class.
 
file  step.php
 Tour Step Renderable.
 
file  step_list.php
 Table to show the list of steps in a tour.
 
file  step_shown.php
 The tool_usertours step_shown event.
 
file  target.php
 Target class.
 
file  theme.php
 Theme filter.
 
file  tour.php
 Tour class.
 
file  tour.php
 Tour renderable.
 
file  tour.php
 Web Service functions for steps.
 
file  tour_ended.php
 The tool_usertours tour_ended event.
 
file  tour_list.php
 Table to show the list of tours.
 
file  tour_reset.php
 The tool_usertours tour_reset event.
 
file  tour_started.php
 The tool_usertours tour_started event.
 
file  unattached.php
 A step designed to be orphaned.
 
file  upgrade.php
 Upgrade code for install.
 
file  version.php
 Version information.
 

Namespaces

 tool_usertours
  
 
 tool_usertours\event
  
 
 tool_usertours\external
  
 
 tool_usertours\local\filter
  
 
 tool_usertours\local\forms
  
 
 tool_usertours\local\table
  
 
 tool_usertours\local\target
  
 
 tool_usertours\output
  
 
 tool_usertours\privacy
  
 

Classes

class  behat_tool_usertours
 
class  tool_usertours\cache
 Cache manager. More...
 
class  tool_usertours\configuration
 Step configuration detail class. More...
 
class  tool_usertours\event\step_shown
 
class  tool_usertours\event\tour_ended
 
class  tool_usertours\event\tour_reset
 
class  tool_usertours\event\tour_started
 
class  tool_usertours\external\tour
 Web Service functions for steps. More...
 
class  tool_usertours\helper
 Tour helper. More...
 
class  tool_usertours\local\filter\base
 Filter base. More...
 
class  tool_usertours\local\filter\category
 Category filter. More...
 
class  tool_usertours\local\filter\course
 Course filter. More...
 
class  tool_usertours\local\filter\courseformat
 Course format filter. More...
 
class  tool_usertours\local\filter\role
 Theme filter. More...
 
class  tool_usertours\local\filter\theme
 Theme filter. More...
 
class  tool_usertours\local\forms\editstep
 Form for editing steps. More...
 
class  tool_usertours\local\forms\edittour
 Form for editing tours. More...
 
class  tool_usertours\local\forms\importtour
 Form for importing tours. More...
 
class  tool_usertours\local\table\step_list
 Table to show the list of steps in a tour. More...
 
class  tool_usertours\local\table\tour_list
 Table to show the list of tours. More...
 
class  tool_usertours\local\target\base
 Target base. More...
 
class  tool_usertours\local\target\block
 Block target. More...
 
class  tool_usertours\local\target\selector
 Selector target. More...
 
class  tool_usertours\local\target\unattached
 A step designed to be orphaned. More...
 
class  tool_usertours\manager
 Tour manager. More...
 
class  tool_usertours\output\renderer
 Renderer. More...
 
class  tool_usertours\output\step
 Tour Step Renderable. More...
 
class  tool_usertours\output\tour
 Tour renderable. More...
 
class  tool_usertours\privacy\provider
 Implementation of the privacy subsystem plugin provider for the user tours feature. More...
 
class  tool_usertours\step
 Step class. More...
 
class  tool_usertours\target
 Target class. More...
 
class  tool_usertours\tour
 Tour class. More...
 

Functions

 tool_usertours_before_footer ()
 Add JS to bootstrap tours. More...
 
 tool_usertours_extend_navigation_user ()
 Extend the user navigation to bootstrap tours.
 
 tool_usertours_get_fontawesome_icon_map ()
 Map icons for font-awesome themes.
 
 tool_usertours_inplace_editable ($itemtype, $itemid, $newvalue)
 Manage inplace editable saves. More...
 
 xmldb_tool_usertours_install ()
 Perform the post-install procedures.
 
 xmldb_tool_usertours_upgrade ($oldversion)
 Upgrade the user tours plugin. More...
 

Variables

 $capabilities
 
 $capabilities
 
 $definitions
 
 $functions
 
$plugin component = 'tool_usertours'
 
$plugin requires = 2019111200
 
$plugin version = 2019111802
 

Detailed Description

Function Documentation

◆ tool_usertours_before_footer()

tool_usertours_before_footer ( )

Add JS to bootstrap tours.

Only in Moodle 3.3+

◆ tool_usertours_inplace_editable()

tool_usertours_inplace_editable (   $itemtype,
  $itemid,
  $newvalue 
)

Manage inplace editable saves.

Parameters
string$itemtypeThe type of item.
int$itemidThe ID of the item.
mixed$newvalueThe new value
Return values
string

◆ xmldb_tool_usertours_upgrade()

xmldb_tool_usertours_upgrade (   $oldversion)

Upgrade the user tours plugin.

Parameters
int$oldversionThe old version of the user tours plugin
Return values
bool

Variable Documentation

◆ $capabilities [1/2]

$capabilities
Initial value:
= array(
'tool/usertours:managetours' => [
'captype' => 'write',
'riskbitmask' => RISK_XSS,
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => [
'manager' => CAP_ALLOW,
]
],
)

◆ $capabilities [2/2]

$capabilities
Initial value:
= [
'tool/usertours:managetours',
]

◆ $definitions

$definitions
Initial value:
= array(
'tourdata' => array(
'simplekeys' => true,
'simpledata' => true,
'staticacceleration' => true,
'staticaccelerationsize' => 1,
),
'stepdata' => array(
'simplekeys' => true,
'simpledata' => true,
'staticacceleration' => true,
'staticaccelerationsize' => 1,
),
)
CONTEXT_SYSTEM
const CONTEXT_SYSTEM
System context level - only one instance in every system.
Definition: accesslib.php:122
cache_store\MODE_APPLICATION
const MODE_APPLICATION
Application caches.
Definition: store.php:138
CAP_ALLOW
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115
RISK_XSS
const RISK_XSS
Capability allows user to add scripted content - see http://docs.moodle.org/dev/Hardening_new_Roles_s...
Definition: accesslib.php:143