You are here

function qformat_qti2::get_assesment_item_id in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/question/format/qti2/format.php \qformat_qti2::get_assesment_item_id()

Gets an id to use for a qti assesment item

Parameters

object $question:

Return value

string containing a qti assesment item id

3 calls to qformat_qti2::get_assesment_item_id()
qformat_qti2::exportprocess in includes/moodle/question/format/qti2/format.php
exports the questions in a question category to the given location
qformat_qti2::questions_with_export_info in includes/moodle/question/format/qti2/format.php
adds exporttext property to the questions
qformat_qti2::writequestion in includes/moodle/question/format/qti2/format.php
Creates the export text for a question

File

includes/moodle/question/format/qti2/format.php, line 653

Class

qformat_qti2

Code

function get_assesment_item_id($question) {
  return "question{$question->id}";
}