local:shop:structure:handlers:buycategory

Creation of a Moodle Course Category

Moodle Shop: Production Handlers

Introduction

This allows the buyer to own a Moodle course category and become its Manager, to manage users there in order to carry out a teaching action as an author requiring the building of several course modules.

  • Creation of a category
  • Creation and assignment of a Manager account (localised to the category) 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

  • parentcategory: The Moodle identifier (integer) of the parent category where the category will be created
  • cancreatecatogories: (0 or 1 by default) if the creation of subcategories is not allowed, then the buyer will only have a course creator role in the created category.
  • duration: Duration of the category provision

Front-office parameters

  • None.

Note

The category names remain under the control of the production handler in order to avoid duplicates or naming abuse.


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/buycategory.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki