You are here

function qformat_qti2::get_qti_scoreable in Quiz 6.5

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

returns whether or not a given question is scoreable

Parameters

object $question:

Return value

boolean

1 call to qformat_qti2::get_qti_scoreable()
qformat_qti2::add_qti_info in includes/moodle/question/format/qti2/format.php
adds qti metadata properties to the questions

File

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

Class

qformat_qti2

Code

function get_qti_scoreable($question) {
  switch ($question->qtype) {
    case DESCRIPTION:
      return 'false';
    default:
      return 'true';
  }
}