Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 173 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

add_random_questions:: (3 methods):
  execute_parameters()
  execute()
  execute_returns()


Class: add_random_questions  - X-Ref

Add random questions to a quiz.

execute_parameters()   X-Ref
Parameters for the web service function

return: external_function_parameters

execute(int $cmid,int $addonpage,int $randomcount,string $filtercondition = '',string $newcategory = '',string $parentcategory = '',)   X-Ref
Add random questions.

param: int $cmid The cmid of the quiz
param: int $addonpage The page where random questions will be added to
param: int $randomcount Number of random questions
param: string $filtercondition Filter condition
param: string $newcategory add new category
param: string $parentcategory parent category of new category
return: array result

execute_returns()   X-Ref
Returns description of method result value.

return: external_value