📄 format.php
字号:
<?php // $Id: format.php,v 1.4.4.1 2007/11/02 16:20:29 tjhunt Exp $ /////////////////////////////////////////////////////////////////////////////// MULTIANSWER FORMAT////// Created by Henrik Kaipe///////////////////////////////////////////////////////////////////////////////// Based on format.php, included by ../../import.php/** * @package questionbank * @subpackage importexport */class qformat_multianswer extends qformat_default { function provide_import() { return true; } function readquestions($lines) { // Parses an array of lines into an array of questions. // For this class the method has been simplified as // there can never be more than one question for a // multianswer import $questions= array(); $thequestion= qtype_multianswer_extract_question( addslashes(implode('',$lines))); $thequestion->qtype = MULTIANSWER; $thequestion->course = $this->course; if (!empty($thequestion)) { $thequestion->name = addslashes($lines[0]); $questions[] = $thequestion; } return $questions; }}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -