moodle/lib/dtllib.php

64 lines
3.1 KiB
PHP
Raw Normal View History

<?php // $Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com //
// Copyright (C) 2008 onwards Andrei Bautu //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
// DTL == Dtatabase Transfer Library
// This library includes all the required functions used to handle
// transfer of data from one database to another.
require_once($CFG->libdir.'/ddllib.php');
require_once($CFG->libdir.'/dtl/database_exporter.php');
require_once($CFG->libdir.'/dtl/xml_database_exporter.php');
require_once($CFG->libdir.'/dtl/file_xml_database_exporter.php');
require_once($CFG->libdir.'/dtl/string_xml_database_exporter.php');
require_once($CFG->libdir.'/dtl/database_mover.php');
require_once($CFG->libdir.'/dtl/database_importer.php');
require_once($CFG->libdir.'/dtl/xml_database_importer.php');
require_once($CFG->libdir.'/dtl/file_xml_database_importer.php');
require_once($CFG->libdir.'/dtl/string_xml_database_importer.php');
/**
* Exception class for export operations.
* @see moodle_exception
* TODO subclass for specific purposes
*/
class export_exception extends moodle_exception {
function __construct($errorcode, $a=null, $debuginfo=null) {
parent::__construct($errorcode, '', '', $a, $debuginfo);
}
}
/**
* Exception class for import operations.
* @see moodle_exception
* TODO subclass for specific purposes
*/
class import_exception extends moodle_exception {
function __construct($errorcode, $a=null, $debuginfo=null) {
parent::__construct($errorcode, '', '', $a, $debuginfo);
}
}