From 148694843bfe7ce17da1069aa2c07cf3cbb4a448 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 9 Feb 2015 14:47:35 -0500 Subject: [PATCH] Remove QTIv1 class - not used anymore - refs CT#7504 --- main/exercice/export/exercise_import.php | 1 - main/exercice/export/qti/qti_classes.php | 138 ----------------------- 2 files changed, 139 deletions(-) delete mode 100755 main/exercice/export/qti/qti_classes.php diff --git a/main/exercice/export/exercise_import.php b/main/exercice/export/exercise_import.php index ca705c73ff..72048868a0 100755 --- a/main/exercice/export/exercise_import.php +++ b/main/exercice/export/exercise_import.php @@ -25,7 +25,6 @@ require_once api_get_path(LIBRARY_PATH) . 'fileUpload.lib.php'; require_once 'exercise_import.inc.php'; include_once '../exercise.class.php'; include_once '../question.class.php'; -include_once 'qti/qti_classes.php'; //SQL table name diff --git a/main/exercice/export/qti/qti_classes.php b/main/exercice/export/qti/qti_classes.php deleted file mode 100755 index 001f1cf025..0000000000 --- a/main/exercice/export/qti/qti_classes.php +++ /dev/null @@ -1,138 +0,0 @@ - - * @author Yannick Warnier - * @package chamilo.exercise - */ -/** - * Code - */ -if ( count( get_included_files() ) == 1 ) die( '---' ); -require_once '../../exercise.class.php'; -require_once '../../question.class.php'; -require_once '../../answer.class.php'; -require_once '../../unique_answer.class.php'; -require_once '../../multiple_answer.class.php'; -require_once '../../fill_blanks.class.php'; -require_once '../../freeanswer.class.php'; -require_once '../../hotspot.class.php'; -require_once '../../matching.class.php'; -require_once '../../hotspot.class.php'; - -/** - * - * @package chamilo.exercise - */ -class ImsAnswerTrueFalse extends answerTrueFalse -{ - /** - * Return the XML flow for the possible answers. - * That's one , containing several - * - * @author Amand Tihon - */ - function imsExportResponses($questionIdent) - { - // Opening of the response block. - $out = '' . "\n"; - - // true - $response_ident = $questionIdent . '_A_true'; - $out .= - ' ' . "\n" - . ' ' . "\n" - . ' ' . "\n"; - - // false - $response_ident = $questionIdent . '_A_false'; - $out .= - ' ' . "\n" - . ' ' . "\n" - . ' ' . "\n"; - - $out .= '' . "\n"; - - return $out; - } - - /** - * Return the XML flow of answer processing : a succession of . - * - * @author Amand Tihon - */ - function imsExportProcessing($questionIdent) - { - $out = ''; - - // true - $response_ident = $questionIdent. '_A_true'; - $feedback_ident = $questionIdent . '_F_true'; - $condition_ident = $questionIdent . '_C_true'; - - $out .= - '' . "\n" - . ' ' . $response_ident . '' . "\n" - . ' ' . "\n" . ' ' . $this->trueGrade . '' . "\n"; - - // Only add references for actually existing comments/feedbacks. - if( !empty($this->trueFeedback) ) - { - $out.= ' ' . "\n"; - } - - $out .= '' . "\n"; - - // false - $response_ident = $questionIdent. '_A_false'; - $feedback_ident = $questionIdent . '_F_false'; - $condition_ident = $questionIdent . '_C_false'; - - $out .= - '' . "\n" - . ' ' . $response_ident . '' . "\n" - . ' ' . "\n" . ' ' . $this->falseGrade . '' . "\n"; - - // Only add references for actually existing comments/feedbacks. - if( !empty($this->falseFeedback) ) - { - $out.= ' ' . "\n"; - } - - $out .= '' . "\n"; - - return $out; - } - - /** - * Export the feedback (comments to selected answers) to IMS/QTI - * - * @author Amand Tihon - */ - function imsExportFeedback($questionIdent) - { - $out = ""; - - if( !empty($this->trueFeedback) ) - { - $feedback_ident = $questionIdent . '_F_true'; - $out.= '' . "\n" - . ' trueFeedback . "]]>\n" - . "\n"; - } - - if( !empty($this->falseFeedback) ) - { - $feedback_ident = $questionIdent . '_F_false'; - $out.= '' . "\n" - . ' falseFeedback . "]]>\n" - . "\n"; - } - return $out; - } -}