Skip to content

Commit

Permalink
MDL-57273 core: Migrating core_competency exporters into core
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart authored and Damyon Wiese committed Jan 20, 2017
1 parent 2198e0e commit 6e28143
Show file tree
Hide file tree
Showing 38 changed files with 671 additions and 588 deletions.
2 changes: 1 addition & 1 deletion admin/tool/lp/classes/external/cohort_summary_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class cohort_summary_exporter extends \core_competency\external\exporter {
class cohort_summary_exporter extends \core\external\exporter {

protected static function define_related() {
// Cohorts can exist on a category context.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright 2016 Issam Taboubi <issam.taboubi@umontreal.ca>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class competency_path_exporter extends \core_competency\external\exporter {
class competency_path_exporter extends \core\external\exporter {

/**
* Constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class competency_summary_exporter extends \core_competency\external\exporter {
class competency_summary_exporter extends \core\external\exporter {

protected static function define_related() {
// We cache the context so it does not need to be retrieved from the framework every time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class course_competency_statistics_exporter extends \core_competency\external\exporter {
class course_competency_statistics_exporter extends \core\external\exporter {

public static function define_properties() {
return array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class course_module_summary_exporter extends \core_competency\external\exporter {
class course_module_summary_exporter extends \core\external\exporter {

protected static function define_related() {
return array('cm' => 'cm_info');
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/lp/classes/external/course_summary_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class course_summary_exporter extends \core_competency\external\exporter {
class course_summary_exporter extends \core\external\exporter {

protected static function define_related() {
// We cache the context so it does not need to be retrieved from the course.
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/lp/classes/external/path_node_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @copyright 2016 Issam Taboubi <issam.taboubi@umontreal.ca>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class path_node_exporter extends \core_competency\external\exporter {
class path_node_exporter extends \core\external\exporter {

/**
* Return the list of properties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class template_statistics_exporter extends \core_competency\external\exporter {
class template_statistics_exporter extends \core\external\exporter {

public static function define_properties() {
return array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class user_competency_summary_exporter extends \core_competency\external\exporter {
class user_competency_summary_exporter extends \core\external\exporter {

protected static function define_related() {
// We cache the context so it does not need to be retrieved from the framework every time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class user_competency_summary_in_course_exporter extends \core_competency\external\exporter {
class user_competency_summary_in_course_exporter extends \core\external\exporter {

protected static function define_related() {
// We cache the context so it does not need to be retrieved from the framework every time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class user_competency_summary_in_plan_exporter extends \core_competency\external\exporter {
class user_competency_summary_in_plan_exporter extends \core\external\exporter {

protected static function define_related() {
// We cache the context so it does not need to be retrieved from the framework every time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @copyright 2016 Serge Gauthier - <serge.gauthier.2@umontreal.ca>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class user_evidence_competency_summary_exporter extends \core_competency\external\exporter {
class user_evidence_competency_summary_exporter extends \core\external\exporter {

protected static function define_related() {
return array('competency' => '\\core_competency\\competency',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @copyright 2016 Serge Gauthier - <serge.gauthier.2@umontreal.ca>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class user_evidence_summary_exporter extends \core_competency\external\persistent_exporter {
class user_evidence_summary_exporter extends \core\external\persistent_exporter {

protected static function define_class() {
return 'core_competency\\user_evidence';
Expand Down
2 changes: 1 addition & 1 deletion competency/classes/external/comment_area_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* @copyright 2015 Frédéric Massart - FMCorz.net
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class comment_area_exporter extends exporter {
class comment_area_exporter extends \core\external\exporter {

/** @var comment The comment instance. */
protected $comment = null;
Expand Down
2 changes: 1 addition & 1 deletion competency/classes/external/competency_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class competency_exporter extends persistent_exporter {
class competency_exporter extends \core\external\persistent_exporter {

protected static function define_class() {
return 'core_competency\\competency';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class competency_framework_exporter extends persistent_exporter {
class competency_framework_exporter extends \core\external\persistent_exporter {

/**
* Define the name of persistent class.
Expand Down
2 changes: 1 addition & 1 deletion competency/classes/external/course_competency_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class course_competency_exporter extends persistent_exporter {
class course_competency_exporter extends \core\external\persistent_exporter {

protected static function define_class() {
return 'core_competency\\course_competency';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_competency\external;
defined('MOODLE_INTERNAL') || die();

/**
* Class for exporting course_competency_settings data.
Expand All @@ -30,7 +31,7 @@
* @copyright 2016 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class course_competency_settings_exporter extends persistent_exporter {
class course_competency_settings_exporter extends \core\external\persistent_exporter {

protected static function define_class() {
return 'core_competency\\course_competency_settings';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class course_module_competency_exporter extends persistent_exporter {
class course_module_competency_exporter extends \core\external\persistent_exporter {

protected static function define_class() {
return 'core_competency\\course_module_competency';
Expand Down
3 changes: 2 additions & 1 deletion competency/classes/external/evidence_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_competency\external;
defined('MOODLE_INTERNAL') || die();

use renderer_base;
use core_competency\evidence;
Expand All @@ -33,7 +34,7 @@
* @copyright 2015 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class evidence_exporter extends persistent_exporter {
class evidence_exporter extends \core\external\persistent_exporter {

protected static function define_related() {
return array(
Expand Down
Loading

0 comments on commit 6e28143

Please sign in to comment.