moodle/backup/cc/cc_includes.php

46 lines
2.4 KiB
PHP
Raw Normal View History

<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Main include for IMS Common Cartridge export classes
*
* @package backup-convert
* @copyright 2011 Darko Miletic <dmiletic@moodlerooms.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once($CFG->dirroot .'/backup/cc/cc_lib/xmlbase.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_resources.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_builder_creator.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_manifest.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_metadata.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_metadata_resource.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_metadata_file.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_version11.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/gral_lib/pathutils.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/gral_lib/functions.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_organization.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_converter_basiclti.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_converter_lti.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_converter_forum.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_converter_url.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_converter_resource.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_converter_quiz.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_converter_page.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_converter_label.php');
MDL-44630: Several additions to Common Cartridge Import/Export Changes provided by Darko Miletic and Sam Chaffee. * Fix problem with CC import not detecting a CC package. (Sam) * Fixed Common Cartridge not importing FIB answers. (Sam) * Fix to CC export so that short answer pattern matching question in a quiz does not prevent the entire quiz from exporting. (Sam) * Fix notice about missing index when there is no answer-specific feedback in short answer question during CC export. (Sam) * Fixed Japanese characters being incorrectly encoded (garbled) on Common Cartridge import. (Sam) * Changed import of CC discussions to create 'Standard General' forums in Moodle. (Sam) * Fix problem with question name being replaced with question text on CC import of exported Moodle questions. (Sam) * Fix CC 1.1 multiple choice question import having no correct answers. (Sam) * Fixed problem with multiple choice, multiple answers allowed questions not exporting correct answers to CC. (Sam) * Removed duplicate method. (Darko) * Implemented fix that skips quiz export if it contains non-exportable question. (Darko) * Fixed: Common cartridge export is extremely slow when dealing with lot of more than 200 files. (Darko) * Added support for basic roles support in common cartridge. (Darko) * Implemented folder resource export. (Darko) * Minor fixes to adjust to the standard. (Darko) * Added support for exporting simple fill in the blank (shortanswer without wildcards in Moodle). (Darko) * Added support for exporting essay question. (Darko) * Added support for true/false export. (Darko) * Added support for exporting multiple response questions, added also category information into question metadata during export (Darko) * Added support for correctly importing multiple response questions. (Darko)
2014-03-13 15:42:13 -07:00
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_converter_folder.php');
require_once($CFG->dirroot .'/backup/cc/cc_lib/cc_convert_moodle2.php');