MDL-51870 tool_lp: Use new ajax definition of external functions
This commit is contained in:
committed by
Frederic Massart
parent
dccdd4da87
commit
67e0b72fb2
@@ -275,14 +275,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function create_competency_framework_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new competency framework
|
||||
*
|
||||
@@ -351,14 +343,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function read_competency_framework_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a competency framework by id.
|
||||
*
|
||||
@@ -405,14 +389,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function duplicate_competency_framework_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Duplicate a competency framework
|
||||
*
|
||||
@@ -455,14 +431,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function delete_competency_framework_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a competency framework
|
||||
*
|
||||
@@ -546,14 +514,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function update_competency_framework_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing competency framework
|
||||
*
|
||||
@@ -650,14 +610,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function list_competency_frameworks_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* List the existing competency frameworks
|
||||
*
|
||||
@@ -736,14 +688,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function count_competency_frameworks_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the existing competency frameworks
|
||||
*
|
||||
@@ -782,14 +726,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function data_for_competency_frameworks_manage_page_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the data required to render the competency_frameworks_manage_page template.
|
||||
*
|
||||
@@ -929,14 +865,6 @@ class external extends external_api {
|
||||
return new external_single_structure($returns);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function create_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns description of create_competency() parameters.
|
||||
*
|
||||
@@ -1058,14 +986,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function read_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a competency by id.
|
||||
*
|
||||
@@ -1112,14 +1032,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function delete_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a competency
|
||||
*
|
||||
@@ -1191,14 +1103,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function update_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing competency
|
||||
*
|
||||
@@ -1249,14 +1153,6 @@ class external extends external_api {
|
||||
return self::list_parameters_structure();
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function list_competencies_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* List the existing competency.
|
||||
*
|
||||
@@ -1349,14 +1245,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function search_competencies_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* List the existing competency frameworks
|
||||
*
|
||||
@@ -1417,14 +1305,6 @@ class external extends external_api {
|
||||
return self::count_parameters_structure();
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function count_competencies_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the existing competency frameworks.
|
||||
*
|
||||
@@ -1483,14 +1363,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function data_for_competencies_manage_page_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the data required to render the competencies_manage_page template.
|
||||
*
|
||||
@@ -1556,14 +1428,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function set_parent_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Move the competency to a new parent.
|
||||
*
|
||||
@@ -1608,14 +1472,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function move_up_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the sort order of a competency.
|
||||
*
|
||||
@@ -1657,14 +1513,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function move_down_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the sort order of a competency.
|
||||
*
|
||||
@@ -1706,14 +1554,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function count_courses_using_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the courses (visible to this user) that use this competency.
|
||||
*
|
||||
@@ -1755,14 +1595,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function list_courses_using_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the courses (visible to this user) that use this competency.
|
||||
*
|
||||
@@ -1842,14 +1674,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function count_competencies_in_course_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the competencies (visible to this user) in this course.
|
||||
*
|
||||
@@ -1891,14 +1715,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function list_competencies_in_course_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* List the competencies (visible to this user) in this course.
|
||||
*
|
||||
@@ -1954,14 +1770,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function add_competency_to_course_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the competencies (visible to this user) in this course.
|
||||
*
|
||||
@@ -2011,14 +1819,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function remove_competency_from_course_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the competencies (visible to this user) in this course.
|
||||
*
|
||||
@@ -2060,14 +1860,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function data_for_course_competencies_page_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the data required to render the course_competencies_page template.
|
||||
*
|
||||
@@ -2136,14 +1928,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function reorder_course_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the order of course competencies.
|
||||
*
|
||||
@@ -2201,14 +1985,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function reorder_template_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the order of template competencies.
|
||||
*
|
||||
@@ -2354,14 +2130,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function create_template_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new learning plan template
|
||||
*
|
||||
@@ -2426,14 +2194,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function read_template_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a learning plan template by id.
|
||||
*
|
||||
@@ -2481,14 +2241,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function delete_template_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a learning plan template
|
||||
*
|
||||
@@ -2560,14 +2312,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function update_template_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing learning plan template
|
||||
*
|
||||
@@ -2628,14 +2372,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX.
|
||||
* @return boolean
|
||||
*/
|
||||
public static function duplicate_template_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Duplicate a learning plan template.
|
||||
*
|
||||
@@ -2709,14 +2445,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function list_templates_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* List the existing learning plan templates
|
||||
*
|
||||
@@ -2793,14 +2521,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function count_templates_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the existing learning plan templates
|
||||
*
|
||||
@@ -2838,14 +2558,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function data_for_templates_manage_page_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the data required to render the templates_manage_page template.
|
||||
*
|
||||
@@ -2905,14 +2617,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function count_templates_using_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the learning plan templates (visible to this user) that use this competency.
|
||||
*
|
||||
@@ -2954,14 +2658,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function list_templates_using_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* List the learning plan templates (visible to this user) that use this competency.
|
||||
*
|
||||
@@ -3004,14 +2700,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function count_competencies_in_template_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the competencies (visible to this user) in this learning plan template.
|
||||
*
|
||||
@@ -3054,14 +2742,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function list_competencies_in_template_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* List the competencies (visible to this user) in this learning plan template.
|
||||
*
|
||||
@@ -3118,14 +2798,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function add_competency_to_template_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the competencies (visible to this user) in this template.
|
||||
*
|
||||
@@ -3176,14 +2848,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function remove_competency_from_template_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the competencies (visible to this user) in this learning plan template.
|
||||
*
|
||||
@@ -3225,14 +2889,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function data_for_template_competencies_page_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the data required to render the template_competencies_page template.
|
||||
*
|
||||
@@ -3414,14 +3070,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function create_plan_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new learning plan.
|
||||
*
|
||||
@@ -3528,14 +3176,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function update_plan_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a new learning plan.
|
||||
*
|
||||
@@ -3594,14 +3234,6 @@ class external extends external_api {
|
||||
return new external_function_parameters(array('id' => $id));
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function read_plan_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a plan by id.
|
||||
*
|
||||
@@ -3648,14 +3280,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function delete_plan_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a plan.
|
||||
*
|
||||
@@ -3694,14 +3318,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
* @return boolean
|
||||
*/
|
||||
public static function data_for_plans_page_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the data required to render the plans_page template.
|
||||
*
|
||||
@@ -3755,15 +3371,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public static function get_scale_values_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the values associated with a scale.
|
||||
*
|
||||
@@ -3830,15 +3437,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public static function add_related_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a related competency.
|
||||
*
|
||||
@@ -3888,15 +3486,6 @@ class external extends external_api {
|
||||
return new external_function_parameters($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public static function remove_related_competency_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a related competency.
|
||||
*
|
||||
@@ -3937,15 +3526,6 @@ class external extends external_api {
|
||||
return new external_function_parameters(array('competencyid' => $competencyid));
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose to AJAX
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public static function data_for_related_competencies_section_is_allowed_from_ajax() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data to render in the related competencies section.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user