Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
qtype_random

Files

file  helper.php
 Test helpers for the random question type.
 
file  provider.php
 Privacy Subsystem implementation for qtype_random.
 
file  remove_unused_questions.php
 A scheduled task to remove unneeded random questions.
 
file  tasks.php
 Definition of question/type/random scheduled tasks.
 
file  upgrade.php
 Random question type upgrade code.
 

Namespaces

namespace  qtype_random\privacy
  
 
namespace  qtype_random\task
  
 

Classes

class  qtype_random\privacy\provider
 Privacy Subsystem for qtype_random implementing null_provider. More...
 
class  qtype_random\task\remove_unused_questions
 A scheduled task to remove unneeded random questions. More...
 
class  qtype_random_test_helper
 Test helper class for the random question type. More...
 

Functions

 xmldb_qtype_random_upgrade ($oldversion)
 Upgrade code for the random question type. More...
 

Variables

 $tasks
 

Detailed Description

Function Documentation

◆ xmldb_qtype_random_upgrade()

xmldb_qtype_random_upgrade (   $oldversion)

Upgrade code for the random question type.

Parameters
int$oldversionthe version we are upgrading from.

Variable Documentation

◆ $tasks

$tasks
Initial value:
= array(
array(
'classname' => 'qtype_random\task\remove_unused_questions',
'blocking' => 0,
'minute' => 'R',
'hour' => '*',
'day' => '*',
'month' => '*',
'dayofweek' => '*'
)
)