local:shop:structure:handlers:addquizattempts
Table des matières
Purchase of Quiz Attempts
Moodle Shop: Production Handlers
Presentation
This handler is linked to the usernumattempts quiz access rule, based on an allowed attempts count driven by the userquiz_limits block.
Function: Allows buying additional attempts on a quiz (target test) whose attempts are limited per user. This test must implement the User attempts access restriction in order to provide an effective limitation.
Pre-payment parameters
- customersupport: shortname of the customer support course
Post-payment parameters (execution)
Back-office parameters
One of the three, as you choose:
- quizcmid: quiz module instance id displayed in the URL (mod/quiz/view.php?id=<cmid>)
- quizid: number of the quiz instance known essentially in the database, and in some urls (q=<quizid>)
- quizidnum: course module identification number in the test settings if entered or generated.
The parameter can accept a “comma list” form if the attempts must be added to several quiz instances.
Availability conditions
A product activating this handler is only available for purchase if:
- The user is logged in
- The user is enrolled in the course (tested on the first identifier of the list, so it is advised that the list of quiz references concerns the same course)
Front-office parameters
none.
Notes
- Warning, only works with instances of the Quiz module associated with a quiz access control rule based on user attempts.
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/addquizattempts.txt · Dernière modification : de 127.0.0.1
