|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 // This file is part of Moodle - http://moodle.org/ 00003 // 00004 // Moodle is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // Moodle is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 00023 defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.'); 00024 00025 // GENERAL PARAMETERS ************************************************************************************************* // 00026 define('ROOT_DEEP', 2); 00027 00028 // PACKAGES FORMATS *************************************************************************************************** // 00029 define('FORMAT_UNKNOWN', 'NA'); 00030 define('FORMAT_COMMON_CARTRIDGE', 'CC'); 00031 define('FORMAT_BLACK_BOARD', 'BB'); 00032 00033 // FORMATS NAMESPACES ************************************************************************************************* // 00034 define('NS_COMMON_CARTRIDGE', 'http://www.imsglobal.org/xsd/imscc/imscp_v1p1'); 00035 define('NS_BLACK_BOARD', 'http://www.blackboard.com/content-packaging'); 00036 00037 // SHEET FILES ******************************************************************************************************** // 00038 define('SHEET_BASE', 'cc/sheets/base.xml'); 00039 define('SHEET_INFO_DETAILS_MOD', 'cc/sheets/info_details_mod.xml'); 00040 define('SHEET_INFO_DETAILS_MOD_INSTANCE', 'cc/sheets/info_details_mod_instance.xml'); 00041 define('SHEET_COURSE_BLOCKS_BLOCK', 'cc/sheets/course_blocks_block.xml'); 00042 define('SHEET_COURSE_HEADER', 'cc/sheets/course_header.xml'); 00043 define('SHEET_COURSE_SECTIONS_SECTION', 'cc/sheets/course_sections_section.xml'); 00044 define('SHEET_COURSE_SECTIONS_SECTION_MODS_MOD', 'cc/sheets/course_sections_section_mods_mod.xml'); 00045 define('SHEET_COURSE_SECTIONS_SECTION_MODS_MOD_FORUM', 'cc/sheets/course_modules_mod_forum.xml'); 00046 define('SHEET_COURSE_SECTIONS_SECTION_MODS_MOD_LABEL', 'cc/sheets/course_modules_mod_label.xml'); 00047 define('SHEET_COURSE_SECTIONS_SECTION_MODS_MOD_RESOURCE', 'cc/sheets/course_modules_mod_resource.xml'); 00048 define('SHEET_COURSE_SECTIONS_SECTION_MODS_MOD_QUIZ', 'cc/sheets/course_modules_mod_quiz.xml'); 00049 define('SHEET_COURSE_SECTIONS_SECTION_MODS_MOD_QUIZ_QUESTION_INSTANCE', 'cc/sheets/course_modules_mod_quiz_question_instance.xml'); 00050 define('SHEET_COURSE_SECTIONS_SECTION_MODS_MOD_QUIZ_FEEDBACK', 'cc/sheets/course_modules_mod_quiz_feedback.xml'); 00051 define('SHEET_COURSE_QUESTION_CATEGORIES', 'cc/sheets/course_question_categories.xml'); 00052 define('SHEET_COURSE_QUESTION_CATEGORIES_QUESTION_CATEGORY', 'cc/sheets/course_question_categories_question_category.xml'); 00053 define('SHEET_COURSE_QUESTION_CATEGORIES_QUESTION_CATEGORY_QUESTION', 'cc/sheets/course_question_categories_question_category_question.xml'); 00054 define('SHEET_COURSE_QUESTION_CATEGORIES_QUESTION_CATEGORY_QUESTION_MULTIPLE_CHOICE', 'cc/sheets/course_question_categories_question_category_question_multiple_choice.xml'); 00055 define('SHEET_COURSE_QUESTION_CATEGORIES_QUESTION_CATEGORY_QUESTION_TRUE_FALSE', 'cc/sheets/course_question_categories_question_category_question_true_false.xml'); 00056 define('SHEET_COURSE_QUESTION_CATEGORIES_QUESTION_CATEGORY_QUESTION_EESAY', 'cc/sheets/course_question_categories_question_category_question_eesay.xml'); 00057 define('SHEET_COURSE_QUESTION_CATEGORIES_QUESTION_CATEGORY_QUESTION_SHORTANSWER', 'cc/sheets/course_question_categories_question_category_question_shortanswer.xml'); 00058 define('SHEET_COURSE_QUESTION_CATEGORIES_QUESTION_CATEGORY_QUESTION_ANSWER', 'cc/sheets/course_question_categories_question_category_question_answer.xml'); 00059 define('SHEET_COURSE_SECTIONS_SECTION_MODS_MOD_BASICLTI', 'cc/sheets/course_modules_mod_basiclti.xml'); 00060 define('SHEET_COURSE_SECTIONS_SECTION_MODS_MOD_LTI', 'cc/sheets/course_modules_mod_lti.xml'); 00061 00062 // CC RESOURCES TYPE ************************************************************************************************** // 00063 define('CC_TYPE_FORUM', 'imsdt_xmlv1p0'); 00064 define('CC_TYPE_QUIZ', 'imsqti_xmlv1p2/imscc_xmlv1p0/assessment'); 00065 define('CC_TYPE_QUESTION_BANK', 'imsqti_xmlv1p2/imscc_xmlv1p0/question-bank'); 00066 define('CC_TYPE_WEBLINK', 'imswl_xmlv1p0'); 00067 define('CC_TYPE_WEBCONTENT', 'webcontent'); 00068 define('CC_TYPE_ASSOCIATED_CONTENT', 'associatedcontent/imscc_xmlv1p0/learning-application-resource'); 00069 define('CC_TYPE_EMPTY', ''); 00070 00071 // MOODLE RESOURCES TYPE ********************************************************************************************** // 00072 define('MOODLE_TYPE_FORUM', 'forum'); 00073 define('MOODLE_TYPE_QUIZ', 'quiz'); 00074 define('MOODLE_TYPE_QUESTION_BANK', 'question_bank'); 00075 define('MOODLE_TYPE_RESOURCE', 'resource'); 00076 define('MOODLE_TYPE_LABEL', 'label'); 00077 define('MOODLE_TYPE_BASICLTI', 'basiclti'); 00078 define('MOODLE_TYPE_LTI', 'lti'); 00079 00080 // UNKNOWN TYPE ******************************************************************************************************* // 00081 define('TYPE_UNKNOWN', '[UNKNOWN]'); 00082 00083 // CC QUESTIONS TYPES ************************************************************************************************* // 00084 define('CC_QUIZ_MULTIPLE_CHOICE', 'cc.multiple_choice.v0p1'); 00085 define('CC_QUIZ_TRUE_FALSE', 'cc.true_false.v0p1'); 00086 define('CC_QUIZ_FIB', 'cc.fib.v0p1'); 00087 define('CC_QUIZ_MULTIPLE_RESPONSE', 'cc.multiple_response.v0p1'); 00088 define('CC_QUIZ_PATTERN_MACHT', 'cc.pattern_match.v0p1'); 00089 define('CC_QUIZ_ESSAY', 'cc.essay.v0p1'); 00090 00091 //MOODLE QUESTIONS TYPES ********************************************************************************************** // 00092 define('MOODLE_QUIZ_MULTIPLE_CHOICE', 'multichoice'); 00093 define('MOODLE_QUIZ_TRUE_FALSE', 'truefalse'); 00094 define('MOODLE_QUIZ_MULTIANSWER', 'multianswer'); 00095 define('MOODLE_QUIZ_MULTIPLE_RESPONSE', 'multichoice'); 00096 define('MOODLE_QUIZ_MACHT', 'match'); 00097 define('MOODLE_QUIZ_ESSAY', 'essay'); 00098 define('MOODLE_QUIZ_SHORTANSWER', 'shortanswer');