__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/**
* Javascript module to handle tool_usertour AJAX requests.
*
* @module tool_usertours/repository
* @copyright 2016 Andrew Nicols <andrew@nicols.co.uk>
*/
import {call as fetchMany} from 'core/ajax';
import moodleConfig from 'core/config';
/**
* Reset the tour state of the specified tour.
*
* @param {number} tourid
* @return {Promise}
*/
export const resetTourState = tourid => fetchMany([{
methodname: 'tool_usertours_reset_tour',
args: {
tourid,
context: moodleConfig.contextid,
pageurl: window.location.href,
}
}])[0];
/**
* Mark the specified tour as complete.
*
* @param {number} stepid
* @param {number} tourid
* @param {number} stepindex
* @return {Promise}
*/
export const markTourComplete = (stepid, tourid, stepindex) => fetchMany([{
methodname: 'tool_usertours_complete_tour',
args: {
stepid,
stepindex: stepindex,
tourid,
context: moodleConfig.contextid,
pageurl: window.location.href,
}
}])[0];
/**
* Fetch the specified tour.
*
* @param {number} tourid
* @return {Promise}
*/
export const fetchTour = tourid => fetchMany([{
methodname: 'tool_usertours_fetch_and_start_tour',
args: {
tourid,
context: moodleConfig.contextid,
pageurl: window.location.href,
}
}])[0];
/**
* Mark the specified step as having been shown.
*
* @param {number} stepid
* @param {number} tourid
* @param {number} stepindex
* @return {Promise}
*/
export const markStepShown = (stepid, tourid, stepindex) => fetchMany([{
methodname: 'tool_usertours_step_shown',
args: {
tourid,
stepid,
stepindex,
context: moodleConfig.contextid,
pageurl: window.location.href,
}
}])[0];
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| events.js | File | 4.43 KB | 0777 |
|
| filter_cssselector.js | File | 1.3 KB | 0777 |
|
| managesteps.js | File | 1.32 KB | 0777 |
|
| managetours.js | File | 1.32 KB | 0777 |
|
| repository.js | File | 1.73 KB | 0777 |
|
| tour.js | File | 63.05 KB | 0777 |
|
| usertours.js | File | 7.34 KB | 0777 |
|