local:shop:structure:handlers:setupcoursesession

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

  1. This product can be renewed through the use of an enrolment period extension handler.
  2. This product requires the “seats” mode to be enabled.
  3. 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

local/shop/structure/handlers/setupcoursesession.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki