local:shop:structure:handlers:setupcoursesession
Table des matières
Setting Up a Training
Moodle Shop: Production Handlers
Function
Allows the buyer to enrol a set of people in a training. Participants can be distributed over “learner” or “teacher” functions.
Pre-payment parameters
- customersupport: shortname of the customer support course
Post-payment parameters (execution)
Back-office parameters
- coursename(*): The short name of the target course.
For example the target course whose shortname is SCI: coursename=SCI
- role: role short name, (by default 'student').
- enrolname: Resulting enrolment method (by default, 'manual')
- starttime: Enrolment start date (by default, purchase date)
- endtime: Enrolment end date (by default, unlimited)
- duration: Enrolment duration (alternatively to the end date, the end date is the start date plus the duration) expressed in days.
For example, the product whose lifetime is set to 180 days for the customer: duration=180
(*) Mandatory parameters
Front-office parameters
none.
Date format for training duration control
'startdate'
- a Linux-style timestamp.
'enddate'
- a timestamp (Linux-style)
- a relative form containing an offset in days and/or hours (e.g. +7D +10H, for 7 days and 10 hours from the start date)
'duration'
- an integer in days (24 hours)
Notes
- This product can be renewed through the use of an enrolment period extension handler.
- This product requires the “seats” mode to be enabled.
- if the product is marked as renewable but the end date cannot be computed (no “endtime” or no explicit duration), then the default end date is set to the computed start date plus 365 calendar days.
Example
Renewable product with a product lifetime of 180 days in the processing handler:
See the implementation sheet - Back to the structure summary - Back to setting up and running a commercial offer -Back to the Local Shop component summary - Back to the catalogue
local/shop/structure/handlers/setupcoursesession.txt · Dernière modification : de 127.0.0.1
