function qformat_xml::get_format in Quiz 6.6
Same name and namespace in other branches
- 6.5 includes/moodle/question/format/xml/format.php \qformat_xml::get_format()
Convert internal Moodle text format code into human readable form
Parameters
int id internal code:
Return value
string format text
1 call to qformat_xml::get_format()
- qformat_xml::writequestion in includes/
moodle/ question/ format/ xml/ format.php - Turns question into an xml segment
File
- includes/
moodle/ question/ format/ xml/ format.php, line 644
Class
Code
function get_format($id) {
switch ($id) {
case 0:
$name = "moodle_auto_format";
break;
case 1:
$name = "html";
break;
case 2:
$name = "plain_text";
break;
case 3:
$name = "wiki_like";
break;
case 4:
$name = "markdown";
break;
default:
$name = "unknown";
}
return $name;
}