mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-57273 core: Using $renamedclasses for deprecated classes
This commit is contained in:
parent
c59e531301
commit
32896dcbab
@ -1,38 +0,0 @@
|
||||
<?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/>.
|
||||
|
||||
/**
|
||||
* Class for exporting a cohort summary from an stdClass.
|
||||
*
|
||||
* @package tool_lp
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace tool_lp\external;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('The class \\tool_lp\\external\\cohort_summary_exporter has been deprecated. ' .
|
||||
'Please use \\core_cohort\\external\\cohort_summary_exporter instead.', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Class for exporting a cohort summary from an stdClass.
|
||||
*
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
class cohort_summary_exporter extends \core_cohort\external\cohort_summary_exporter {
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
<?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/>.
|
||||
|
||||
/**
|
||||
* Class for exporting a course module summary from an stdClass.
|
||||
*
|
||||
* @package tool_lp
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace tool_lp\external;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('The class \\tool_lp\\external\\course_module_summary_exporter has been deprecated. ' .
|
||||
'Please use \\core_course\\external\\course_module_summary_exporter instead.', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Class for exporting a course module summary from a cm_info class.
|
||||
*
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
class course_module_summary_exporter extends \core_course\external\course_module_summary_exporter {
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
<?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/>.
|
||||
|
||||
/**
|
||||
* Class for exporting a course summary from an stdClass.
|
||||
*
|
||||
* @package tool_lp
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace tool_lp\external;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('The class \\tool_lp\\external\\course_summary_exporter has been deprecated. ' .
|
||||
'Please use \\core_course\\external\\course_summary_exporter instead.', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Class for exporting a course summary from an stdClass.
|
||||
*
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
class course_summary_exporter extends \core_course\external\course_summary_exporter {
|
||||
}
|
@ -15,25 +15,18 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Legacy persistent form abstract.
|
||||
* This file contains renamed classes mappings.
|
||||
*
|
||||
* @package tool_lp
|
||||
* @copyright 2015 Frédéric Massart - FMCorz.net
|
||||
* @copyright 2016 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace tool_lp\form;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('The class tool_lp\\form\\persistent is deprecated. Please use core\\form\\persistent instead.', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Legacy persistent form abstract class.
|
||||
*
|
||||
* @package tool_lp
|
||||
* @copyright 2015 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
abstract class persistent extends \core\form\persistent {
|
||||
}
|
||||
$renamedclasses = array(
|
||||
'tool_lp\\external\\cohort_summary_exporter' => 'core_cohort\\external\\cohort_summary_exporter',
|
||||
'tool_lp\\external\\course_module_summary_exporter' => 'core_course\\external\\course_module_summary_exporter',
|
||||
'tool_lp\\external\\course_summary_exporter' => 'core_course\\external\\course_summary_exporter',
|
||||
'tool_lp\\form\\persistent' => 'core\\form\\persistent',
|
||||
);
|
@ -1,41 +0,0 @@
|
||||
<?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/>.
|
||||
|
||||
/**
|
||||
* Exporting a comment area.
|
||||
*
|
||||
* A comment area is the set of information about a defined comments area.
|
||||
*
|
||||
* @package core_competency
|
||||
* @copyright 2015 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace core_competency\external;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('The class \\core_competency\\external\\comment_area_exporter has been deprecated. ' .
|
||||
'Please use \\core_comment\\external\\comment_area_exporter instead.', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Class for exporting a comment area.
|
||||
*
|
||||
* @package core_competency
|
||||
* @copyright 2015 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
class comment_area_exporter extends \core_comment\external\comment_area_exporter {
|
||||
}
|
38
competency/classes/external/exporter.php
vendored
38
competency/classes/external/exporter.php
vendored
@ -1,38 +0,0 @@
|
||||
<?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/>.
|
||||
|
||||
/**
|
||||
* Legacy core_competency exporter.
|
||||
*
|
||||
* @package core_competency
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace core_competency\external;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('The class \\core_competency\\external\\exporter has been deprecated. ' .
|
||||
'Please use \\core\\external\\exporter instead.', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Legacy abstract exporter class for core_competency related exporters.
|
||||
*
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
abstract class exporter extends \core\external\exporter {
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
<?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/>.
|
||||
|
||||
/**
|
||||
* Legacy persistent exporter for core_competency.
|
||||
*
|
||||
* @package core_competency
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace core_competency\external;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('The class \\core_competency\\external\\persistent_exporter has been deprecated. ' .
|
||||
'Please use \\core\\external\\persistent_exporter instead.', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Legacy persistent exporter class for core_competency.
|
||||
*
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
abstract class persistent_exporter extends \core\external\persistent_exporter {
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
<?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/>.
|
||||
|
||||
/**
|
||||
* Class for exporting stored_file data.
|
||||
*
|
||||
* @package core_competency
|
||||
* @copyright 2015 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace core_competency\external;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('The class \\core_competency\\external\\stored_file_exporter has been deprecated. ' .
|
||||
'Please use \\core_files\\external\\stored_file_exporter instead.', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Class for exporting stored_file data.
|
||||
*
|
||||
* @package core_competency
|
||||
* @copyright 2015 Frédéric Massart - FMCorz.net
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
class stored_file_exporter extends \core_files\external\stored_file_exporter {
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
<?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/>.
|
||||
|
||||
/**
|
||||
* Class for exporting a user summary from an stdClass.
|
||||
*
|
||||
* @package core_competency
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace core_competency\external;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
debugging('The class \\core_competency\\external\\user_summary_exporter has been deprecated. ' .
|
||||
'Please use \\core_user\\external\\user_summary_exporter instead.', DEBUG_DEVELOPER);
|
||||
|
||||
/**
|
||||
* Class for exporting a user summary from an stdClass.
|
||||
*
|
||||
* @copyright 2015 Damyon Wiese
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
class user_summary_exporter extends \core_user\external\user_summary_exporter {
|
||||
}
|
@ -40,5 +40,10 @@ $renamedclasses = array(
|
||||
'core\progress\null' => 'core\progress\none',
|
||||
'core_search\area\base' => 'core_search\base',
|
||||
'core_search\area\base_mod' => 'core_search\base_mod',
|
||||
'core_search\area\base_activity' => 'core_search\base_activity'
|
||||
'core_search\area\base_activity' => 'core_search\base_activity',
|
||||
'core_competency\\external\\exporter' => 'core\\external\\exporter',
|
||||
'core_competency\\external\\persistent_exporter' => 'core\\external\\persistent_exporter',
|
||||
'core_competency\\external\\comment_area_exporter' => 'core_comment\\external\\comment_area_exporter',
|
||||
'core_competency\\external\\stored_file_exporter' => 'core_files\\external\\stored_file_exporter',
|
||||
'core_competency\\external\\user_summary_exporter' => 'core_user\\external\\user_summary_exporter'
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user