Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

(no description)

File Size: 126 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)   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