{{ :logo-apl.png?nolink |}} ===== Setting Up a Training Session - Implementation ===== ===== Product Automation Handler ===== ==== Scenario ==== It is common in the continuing education world that a group of employees (or other types of learners in other contexts) must be trained within a single "training action". This handler manages the situation in which the operator (customer account holder) is not the one being trained (and sometimes not even the one supervising the trainings). Through a purchase act, it makes it possible to set up a training with its participants, by collecting the minimum data needed to create the accounts and producing in a single operation all the required enrolments. Setting up a training targets a particular course, and makes it possible to declare the learners and the tutors (often a manager, or an HR manager). In the current processing model, tutor seats are not distinguished from learner seats. It is therefore necessary to buy a tutor seat for each training tutor involved in the training sessions. It will then be up to the merchant to pass on the costs of the tutor seats to their customers or not. Trainings are implemented with automatic creation of a course group indexed on the purchase order identifier. If the course groups are separate, the different sessions will in principle not be able to communicate with or see each other (unless the course design by the author can bypass this isolation through implementation tricks). Accounts are only created when necessary. The email address is then authoritative for identifying the candidate. If a presented email address is found in Moodle, the existing user is enrolled in the training, without creating a new user. All accounts are attached to the operator, in the sense of administration delegation. Installing the [[:blocks:userdelegation|Administration delegation]] block will be required to benefit from the delegated user account management interfaces. However, this installation is not absolutely necessary for the shop to run normally. The relations between the operator and the imported users are assigned through cross roles in the respective user contexts. If a course intended for user support exists, a secondary enrolment in customer support can be triggered. === Practical example === Example of a training product where the operator, during the purchase act, determines who the tutor(s) and who the learners will be. [[http://demo.formation-enligne.com/local/shop/front/view.php?view=shop&id=1|Go and test live]] {{ :local:shop:setup:handlers:produit-session-formation-sieges.png?nolink |}} ==== Implementation ==== === Data to prepare (prerequisites) === What you must know before configuring: * The short name (shortname) of the target course of this training What you might possibly need: * The short name of the role to use for the training tutors (a specific role may have been created for this function). === Date encoding === In a first version, "advanced" date input interfaces are not yet developed. Dates must be given as a number of seconds since the start of the universe date (for Linux fans, of course, this date is January 1st, 1970 at 00:00). You can use an online tool such as http://www.timestamp.fr to find the integer that represents your date. === Parameter string encoding === The "internal" parameter string is encoded URL-style (key1=value1&key2=value2&etc...) ---- [[:local:shop:structure:handlers:setupcoursesession|See the structure documentation of this handler]] - [[:local:shop:userguide:salesadmin|Back to setting up and running a commercial offer]] -[[:local:shop|Back to the Local Shop component summary]] - [[:start|Back to the catalogue]]