Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [Versions 400 and 402] [Versions 402 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