Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
qbank_usage\tables\question_usage_table Class Reference
Inheritance diagram for qbank_usage\tables\question_usage_table:

Public Member Functions

 __construct (string $uniqueid, question_definition $question, bool $specificversion=false)
 constructor.
 
 col_attempts (\stdClass $values)
 
 col_coursename (\stdClass $values)
 
 col_modulename (\stdClass $values)
 
 export_for_fragment ()
 Export this data so it can be used as the context for a mustache template/fragment.
 
 query_db ($pagesize, $useinitialsbar=true)
 

Public Attributes

question_definition $question
 Question id.
 
string $search = ''
 Search string.
 

Protected Attributes

bool $specificversion
 $specificversion Are we displaying the usage for a specific version, rather than all versions of the question?
 

Constructor & Destructor Documentation

◆ __construct()

qbank_usage\tables\question_usage_table::__construct ( string $uniqueid,
question_definition $question,
bool $specificversion = false )

constructor.

Sets the SQL for the table and the pagination.

Parameters
string$uniqueid
question_definition$question

Member Function Documentation

◆ export_for_fragment()

qbank_usage\tables\question_usage_table::export_for_fragment ( )

Export this data so it can be used as the context for a mustache template/fragment.

Return values
string

Member Data Documentation

◆ $question

question_definition qbank_usage\tables\question_usage_table::$question

Question id.

$question

◆ $search

string qbank_usage\tables\question_usage_table::$search = ''

Search string.

$search


The documentation for this class was generated from the following file: