|
| __construct (\question_definition $question, bool $shortversion=false) |
| Store the current and latest versions of the question, and whether we want to abbreviate the output string.
|
|
| export_for_template (renderer_base $output) |
| Return the question version info as a string, including the version number and whether this is the latest version.
|
|
|
int int | $latestversion |
| $latestversion The latest version number of this question.
|
|
int int | $version |
| $version The current version number.
|
|
|
static array array | $pendingdefinitions = [] |
| List of definitions that don't know whether they are the latest version yet.
|
|
|
bool bool | $shortversion |
| $shortversion Are we displaying an abbreviation for "version" rather than the full word?
|
|
◆ __construct()
core_question\output\question_version_info::__construct |
( |
\question_definition | $question, |
|
|
bool | $shortversion = false ) |
Store the current and latest versions of the question, and whether we want to abbreviate the output string.
- Parameters
-
◆ export_for_template()
core_question\output\question_version_info::export_for_template |
( |
renderer_base | $output | ) |
|
Return the question version info as a string, including the version number and whether this is the latest version.
- Parameters
-
- Return values
-
- Exceptions
-
Implements templatable.
◆ populate_latest_versions()
static core_question\output\question_version_info::populate_latest_versions |
( |
| ) |
|
|
static |
Find and set the latest version of all pending question_definition objects.
This will update all pending objects in one go, saving us having to do a query for each question.
- Return values
-
The documentation for this class was generated from the following file:
- question/classes/output/question_version_info.php