local:shop:structure:handlers:buycourse
Table des matières
Creation of a Moodle Course Space
Moodle Shop: Production Handlers
Presentation
Function: allows the buyer to own a Moodle course in editing mode, to administer it and to enrol users in it in order to carry out a teaching action as an author.
- Creation of a course by restoring a template course
- Creation and assignment of an editing teacher account to the buyer
- Assignment of a “course owner” role
The provision is made for a fixed period. The product can be renewed.
Pre-payment parameters
- customersupport: shortname of the customer support course
Post-payment parameters (execution)
Back-office parameters
- coursecategory: The category where this course will be created (numeric ID)
- template: Short name of the template course for restoration (course short name)
- duration: Duration of the course provision (in number of days, 365 days by default).
Front-office parameters
- idnumber: Course short name
- fullname: Course full name
See the general structure sheet for how to express these front office parameters in the product configuration.
Notes
- The course short name remains under the control of the handler in order to avoid duplicates
- If a template is designated, it must have a backup made “without user data” in the course backup area. The most recent backup is the one that will be taken into account.
- At the end of the provision period, all accesses to the course will be suspended automatically.
- It is possible to limit the number of enrollees allowed in the course, if the plugin Moodle resource limiter is installed on the platform.
See the implementation sheet - Back to the structure summary - Back to the component summary Local Shop (Boutique) - Back to the catalog
local/shop/structure/handlers/buycourse.txt · Dernière modification : de 127.0.0.1
