From b3fbaac0f4a06265378833ed2940df1ed8f20b0b Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 27 Nov 2013 10:38:27 -0500 Subject: [PATCH] Minor: Code cleanup - refs BT#7010 --- main/exercice/export/aiken/aiken_classes.php | 85 +------------------- 1 file changed, 3 insertions(+), 82 deletions(-) diff --git a/main/exercice/export/aiken/aiken_classes.php b/main/exercice/export/aiken/aiken_classes.php index 53b78b6118..9a84503f26 100644 --- a/main/exercice/export/aiken/aiken_classes.php +++ b/main/exercice/export/aiken/aiken_classes.php @@ -1,4 +1,4 @@ - @@ -21,20 +21,9 @@ if (!function_exists('mime_content_type')) { require_once(api_get_path(SYS_CODE_PATH).'/exercice/answer.class.php'); require_once(api_get_path(SYS_CODE_PATH).'/exercice/exercise.class.php'); require_once(api_get_path(SYS_CODE_PATH).'/exercice/question.class.php'); -//require_once(api_get_path(SYS_CODE_PATH).'/exercice/hotspot.class.php'); require_once(api_get_path(SYS_CODE_PATH).'/exercice/unique_answer.class.php'); -//require_once(api_get_path(SYS_CODE_PATH).'/exercice/multiple_answer.class.php'); -//require_once(api_get_path(SYS_CODE_PATH).'/exercice/multiple_answer_combination.class.php'); -//require_once(api_get_path(SYS_CODE_PATH).'/exercice/matching.class.php'); -//require_once(api_get_path(SYS_CODE_PATH).'/exercice/freeanswer.class.php'); -//require_once(api_get_path(SYS_CODE_PATH).'/exercice/fill_blanks.class.php'); -//include_once $path . '/../../lib/answer_multiplechoice.class.php'; -//include_once $path . '/../../lib/answer_truefalse.class.php'; -//include_once $path . '/../../lib/answer_fib.class.php'; -//include_once $path . '/../../lib/answer_matching.class.php'; /** - * - * @package chamilo.exercise + * Aiken2Question transformation class */ class Aiken2Question extends Question { @@ -71,72 +60,4 @@ class Aiken2Question extends Question */ class AikenAnswerMultipleChoice extends Answer { - /** - * Return the XML flow for the possible answers. - * - */ - function imsExportResponses($questionIdent, $questionStatment) - { - $this->answerList = $this->getAnswersList(true); - $out = ' ' . "\n"; - $out .= ' ' . $questionStatment . ' '. "\n"; - if (is_array($this->answerList)) { - foreach ($this->answerList as $current_answer) { - - - $out .= ' ' . $current_answer['answer']; - if (isset($current_answer['comment']) && $current_answer['comment'] != '') - { - $out .= '' . $current_answer['comment'] . ''; - } - $out .= ''. "\n"; - } - } - $out .= ' '. "\n"; - return $out; - } - - /** - * Return the XML flow of answer ResponsesDeclaration - * - */ - function imsExportResponsesDeclaration($questionIdent) - { - $this->answerList = $this->getAnswersList(true); - $type = $this->getQuestionType(); - if ($type == MCMA) $cardinality = 'multiple'; else $cardinality = 'single'; - - $out = ' ' . "\n"; - - //Match the correct answers - - $out .= ' '. "\n"; - if (is_array($this->answerList)) { - foreach($this->answerList as $current_answer) { - if ($current_answer['correct']) - { - $out .= ' answer_'. $current_answer['id'] .''. "\n"; - } - } - } - $out .= ' '. "\n"; - - //Add the grading - - $out .= ' '. "\n"; - if (is_array($this->answerList)) { - foreach($this->answerList as $current_answer) - { - if (isset($current_answer['grade'])) - { - $out .= ' '. "\n"; - } - } - } - $out .= ' '. "\n"; - - $out .= ' '. "\n"; - - return $out; - } -} \ No newline at end of file +}