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.

Differences Between: [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

(no description)

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

Defines 1 class

question_usage_table:: (6 methods):
  __construct()
  query_db()
  col_modulename()
  col_coursename()
  col_attempts()
  export_for_fragment()


Class: question_usage_table  - X-Ref

Class question_usage_table.
An extension of regular Moodle table.

__construct(string $uniqueid, \question_definition $question, bool $specificversion = false)   X-Ref
constructor.
Sets the SQL for the table and the pagination.

param: string $uniqueid
param: \question_definition $question

query_db($pagesize, $useinitialsbar = true)   X-Ref
No description

col_modulename(\stdClass $values)   X-Ref
No description

col_coursename(\stdClass $values)   X-Ref
No description

col_attempts(\stdClass $values)   X-Ref
No description

export_for_fragment()   X-Ref
Export this data so it can be used as the context for a mustache template/fragment.

return: string