You are here

function qformat_hotpot::hotpot_get_title in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/question/format/hotpot/format.php \qformat_hotpot::hotpot_get_title()
5 calls to qformat_hotpot::hotpot_get_title()
qformat_hotpot::process_jcloze in includes/moodle/question/format/hotpot/format.php
qformat_hotpot::process_jcross in includes/moodle/question/format/hotpot/format.php
qformat_hotpot::process_jmatch in includes/moodle/question/format/hotpot/format.php
qformat_hotpot::process_jmix in includes/moodle/question/format/hotpot/format.php
qformat_hotpot::process_jquiz in includes/moodle/question/format/hotpot/format.php

File

includes/moodle/question/format/hotpot/format.php, line 497

Class

qformat_hotpot
@package questionbank @subpackage importexport

Code

function hotpot_get_title(&$xml, $x, $flag = false) {
  $title = $xml
    ->xml_value('data,title');
  if ($x || $flag) {
    $title .= ' (' . ($x + 1) . ')';
  }
  return $this
    ->hotpot_prepare_str($title);
}