diff --git a/admin/tool/lp/classes/external.php b/admin/tool/lp/classes/external.php index 38e8374d0ed..6b392c9e298 100644 --- a/admin/tool/lp/classes/external.php +++ b/admin/tool/lp/classes/external.php @@ -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. * diff --git a/admin/tool/lp/db/services.php b/admin/tool/lp/db/services.php index 95539d6635b..814c04ce30f 100644 --- a/admin/tool/lp/db/services.php +++ b/admin/tool/lp/db/services.php @@ -35,6 +35,7 @@ $functions = array( 'description' => 'Creates new competency frameworks.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_read_competency_framework' => array( 'classname' => 'tool_lp\external', @@ -43,6 +44,7 @@ $functions = array( 'description' => 'Load a summary of a competency framework.', 'type' => 'read', 'capabilities' => 'tool/lp:competencyview', + 'ajax' => true, ), 'tool_lp_duplicate_competency_framework' => array( 'classname' => 'tool_lp\external', @@ -51,6 +53,7 @@ $functions = array( 'description' => 'Duplicate a competency framework.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_delete_competency_framework' => array( 'classname' => 'tool_lp\external', @@ -59,6 +62,7 @@ $functions = array( 'description' => 'Delete a competency framework.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_update_competency_framework' => array( 'classname' => 'tool_lp\external', @@ -67,6 +71,7 @@ $functions = array( 'description' => 'Update a competency framework.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_list_competency_frameworks' => array( 'classname' => 'tool_lp\external', @@ -75,6 +80,7 @@ $functions = array( 'description' => 'Load a list of a competency frameworks.', 'type' => 'read', 'capabilities' => 'tool/lp:competencyview', + 'ajax' => true, ), 'tool_lp_count_competency_frameworks' => array( 'classname' => 'tool_lp\external', @@ -83,6 +89,7 @@ $functions = array( 'description' => 'Count a list of a competency frameworks.', 'type' => 'read', 'capabilities' => 'tool/lp:competencyview', + 'ajax' => true, ), 'tool_lp_data_for_competency_frameworks_manage_page' => array( 'classname' => 'tool_lp\external', @@ -91,6 +98,7 @@ $functions = array( 'description' => 'Load the data for the competency frameworks manage page template', 'type' => 'read', 'capabilities' => 'tool/lp:competencyview', + 'ajax' => true, ), 'tool_lp_create_competency' => array( 'classname' => 'tool_lp\external', @@ -99,6 +107,7 @@ $functions = array( 'description' => 'Creates new competencies.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_read_competency' => array( 'classname' => 'tool_lp\external', @@ -107,6 +116,7 @@ $functions = array( 'description' => 'Load a summary of a competency.', 'type' => 'read', 'capabilities' => 'tool/lp:competencyview', + 'ajax' => true, ), 'tool_lp_delete_competency' => array( 'classname' => 'tool_lp\external', @@ -115,6 +125,7 @@ $functions = array( 'description' => 'Delete a competency.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_update_competency' => array( 'classname' => 'tool_lp\external', @@ -123,6 +134,7 @@ $functions = array( 'description' => 'Update a competency.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_list_competencies' => array( 'classname' => 'tool_lp\external', @@ -131,6 +143,7 @@ $functions = array( 'description' => 'Load a list of a competencies.', 'type' => 'read', 'capabilities' => 'tool/lp:competencyview', + 'ajax' => true, ), 'tool_lp_count_competencies' => array( 'classname' => 'tool_lp\external', @@ -139,6 +152,7 @@ $functions = array( 'description' => 'Count a list of a competencies.', 'type' => 'read', 'capabilities' => 'tool/lp:competencyview', + 'ajax' => true, ), 'tool_lp_search_competencies' => array( 'classname' => 'tool_lp\external', @@ -147,6 +161,7 @@ $functions = array( 'description' => 'Search a list of a competencies.', 'type' => 'read', 'capabilities' => 'tool/lp:competencyview', + 'ajax' => true, ), 'tool_lp_data_for_competencies_manage_page' => array( 'classname' => 'tool_lp\external', @@ -155,6 +170,7 @@ $functions = array( 'description' => 'Load the data for the competencies manage page template', 'type' => 'read', 'capabilities' => 'tool/lp:competencyview', + 'ajax' => true, ), 'tool_lp_set_parent_competency' => array( 'classname' => 'tool_lp\external', @@ -163,6 +179,7 @@ $functions = array( 'description' => 'Set a new parent for a competency.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_move_up_competency' => array( 'classname' => 'tool_lp\external', @@ -171,6 +188,7 @@ $functions = array( 'description' => 'Re-order a competency.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_move_down_competency' => array( 'classname' => 'tool_lp\external', @@ -179,6 +197,7 @@ $functions = array( 'description' => 'Re-order a competency.', 'type' => 'write', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_list_competencies_in_course' => array( 'classname' => 'tool_lp\external', @@ -187,6 +206,7 @@ $functions = array( 'description' => 'List the competencies in a course', 'type' => 'read', 'capabilities' => 'tool/lp:coursecompetencyread', + 'ajax' => true, ), 'tool_lp_list_courses_using_competency' => array( 'classname' => 'tool_lp\external', @@ -195,6 +215,7 @@ $functions = array( 'description' => 'List the courses using a competency', 'type' => 'read', 'capabilities' => 'tool/lp:coursecompetencyread', + 'ajax' => true, ), 'tool_lp_count_competencies_in_course' => array( 'classname' => 'tool_lp\external', @@ -203,6 +224,7 @@ $functions = array( 'description' => 'List the competencies in a course', 'type' => 'read', 'capabilities' => 'tool/lp:coursecompetencyread', + 'ajax' => true, ), 'tool_lp_count_courses_using_competency' => array( 'classname' => 'tool_lp\external', @@ -211,6 +233,7 @@ $functions = array( 'description' => 'List the courses using a competency', 'type' => 'read', 'capabilities' => 'tool/lp:coursecompetencyread', + 'ajax' => true, ), 'tool_lp_add_competency_to_course' => array( 'classname' => 'tool_lp\external', @@ -219,6 +242,7 @@ $functions = array( 'description' => 'Add the competency to a course', 'type' => 'write', 'capabilities' => 'tool/lp:coursecompetencymanage', + 'ajax' => true, ), 'tool_lp_add_competency_to_template' => array( 'classname' => 'tool_lp\external', @@ -227,6 +251,7 @@ $functions = array( 'description' => 'Add the competency to a template', 'type' => 'write', 'capabilities' => 'tool/lp:templatemanage', + 'ajax' => true, ), 'tool_lp_remove_competency_from_course' => array( 'classname' => 'tool_lp\external', @@ -235,6 +260,7 @@ $functions = array( 'description' => 'Remove a competency from a course', 'type' => 'write', 'capabilities' => 'tool/lp:coursecompetencymanage', + 'ajax' => true, ), 'tool_lp_remove_competency_from_template' => array( 'classname' => 'tool_lp\external', @@ -243,6 +269,7 @@ $functions = array( 'description' => 'Remove a competency from a template', 'type' => 'write', 'capabilities' => 'tool/lp:templatemanage', + 'ajax' => true, ), 'tool_lp_data_for_course_competencies_page' => array( 'classname' => 'tool_lp\external', @@ -251,6 +278,7 @@ $functions = array( 'description' => 'Load the data for the course competencies page template.', 'type' => 'read', 'capabilities' => 'tool/lp:coursecompetencyread', + 'ajax' => true, ), 'tool_lp_data_for_template_competencies_page' => array( 'classname' => 'tool_lp\external', @@ -259,6 +287,7 @@ $functions = array( 'description' => 'Load the data for the template competencies page template.', 'type' => 'read', 'capabilities' => 'tool/lp:templateread', + 'ajax' => true, ), 'tool_lp_reorder_course_competency' => array( 'classname' => 'tool_lp\external', @@ -267,6 +296,7 @@ $functions = array( 'description' => 'Move a course competency to a new relative sort order.', 'type' => 'write', 'capabilities' => 'tool/lp:coursecompetencymanage', + 'ajax' => true, ), 'tool_lp_reorder_template_competency' => array( 'classname' => 'tool_lp\external', @@ -275,6 +305,7 @@ $functions = array( 'description' => 'Move a template competency to a new relative sort order.', 'type' => 'write', 'capabilities' => 'tool/lp:templatemanage', + 'ajax' => true, ), 'tool_lp_create_template' => array( 'classname' => 'tool_lp\external', @@ -283,6 +314,7 @@ $functions = array( 'description' => 'Creates new learning plan templates.', 'type' => 'write', 'capabilities' => 'tool/lp:templatemanage', + 'ajax' => true, ), 'tool_lp_duplicate_template' => array( 'classname' => 'tool_lp\external', @@ -291,6 +323,7 @@ $functions = array( 'description' => 'Duplicate learning plan template.', 'type' => 'write', 'capabilities' => 'tool/lp:templatemanage', + 'ajax' => true, ), 'tool_lp_read_template' => array( 'classname' => 'tool_lp\external', @@ -299,6 +332,7 @@ $functions = array( 'description' => 'Load a summary of a learning plan template.', 'type' => 'read', 'capabilities' => 'tool/lp:templateview', + 'ajax' => true, ), 'tool_lp_delete_template' => array( 'classname' => 'tool_lp\external', @@ -307,6 +341,7 @@ $functions = array( 'description' => 'Delete a learning plan template.', 'type' => 'write', 'capabilities' => 'tool/lp:templatemanage', + 'ajax' => true, ), 'tool_lp_update_template' => array( 'classname' => 'tool_lp\external', @@ -315,6 +350,7 @@ $functions = array( 'description' => 'Update a learning plan template.', 'type' => 'write', 'capabilities' => 'tool/lp:templatemanage', + 'ajax' => true, ), 'tool_lp_list_templates' => array( 'classname' => 'tool_lp\external', @@ -323,6 +359,7 @@ $functions = array( 'description' => 'Load a list of a learning plan templates.', 'type' => 'read', 'capabilities' => 'tool/lp:templateview', + 'ajax' => true, ), 'tool_lp_count_templates' => array( 'classname' => 'tool_lp\external', @@ -331,6 +368,7 @@ $functions = array( 'description' => 'Count a list of a learning plan templates.', 'type' => 'read', 'capabilities' => 'tool/lp:templateview', + 'ajax' => true, ), 'tool_lp_data_for_templates_manage_page' => array( 'classname' => 'tool_lp\external', @@ -339,6 +377,7 @@ $functions = array( 'description' => 'Load the data for the learning plan templates manage page template', 'type' => 'read', 'capabilities' => 'tool/lp:templateview', + 'ajax' => true, ), 'tool_lp_create_plan' => array( 'classname' => 'tool_lp\external', @@ -347,6 +386,7 @@ $functions = array( 'description' => 'Creates a learning plan.', 'type' => 'write', 'capabilities' => 'tool/lp:planmanage', + 'ajax' => true, ), 'tool_lp_update_plan' => array( 'classname' => 'tool_lp\external', @@ -355,6 +395,7 @@ $functions = array( 'description' => 'Updates a learning plan.', 'type' => 'write', 'capabilities' => 'tool/lp:planmanage', + 'ajax' => true, ), 'tool_lp_read_plan' => array( 'classname' => 'tool_lp\external', @@ -363,6 +404,7 @@ $functions = array( 'description' => 'Load a learning plan.', 'type' => 'read', 'capabilities' => 'tool/lp:planviewown', + 'ajax' => true, ), 'tool_lp_delete_plan' => array( 'classname' => 'tool_lp\external', @@ -371,6 +413,7 @@ $functions = array( 'description' => 'Delete a learning plan.', 'type' => 'write', 'capabilities' => 'tool/lp:planmanage', + 'ajax' => true, ), 'tool_lp_data_for_plans_page' => array( 'classname' => 'tool_lp\external', @@ -379,6 +422,7 @@ $functions = array( 'description' => 'Load the data for the plans page template', 'type' => 'read', 'capabilities' => 'tool/lp:planviewown', + 'ajax' => true, ), 'tool_lp_get_scale_values' => array( 'classname' => 'tool_lp\external', @@ -387,30 +431,34 @@ $functions = array( 'description' => 'Fetch the values for a specific scale', 'type' => 'read', 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_add_related_competency' => array( - 'classname' => 'tool_lp\external', - 'methodname' => 'add_related_competency', - 'classpath' => '', - 'description' => 'Adds a related competency', - 'type' => 'write', - 'capabilities'=> 'tool/lp:competencymanage', + 'classname' => 'tool_lp\external', + 'methodname' => 'add_related_competency', + 'classpath' => '', + 'description' => 'Adds a related competency', + 'type' => 'write', + 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_remove_related_competency' => array( - 'classname' => 'tool_lp\external', - 'methodname' => 'remove_related_competency', - 'classpath' => '', - 'description' => 'Remove a related competency', - 'type' => 'write', - 'capabilities'=> 'tool/lp:competencymanage', + 'classname' => 'tool_lp\external', + 'methodname' => 'remove_related_competency', + 'classpath' => '', + 'description' => 'Remove a related competency', + 'type' => 'write', + 'capabilities' => 'tool/lp:competencymanage', + 'ajax' => true, ), 'tool_lp_data_for_related_competencies_section' => array( - 'classname' => 'tool_lp\external', - 'methodname' => 'data_for_related_competencies_section', - 'classpath' => '', - 'description' => 'Load the data for the related competencies template.', - 'type' => 'read', - 'capabilities'=> 'tool/lp:competencyread', + 'classname' => 'tool_lp\external', + 'methodname' => 'data_for_related_competencies_section', + 'classpath' => '', + 'description' => 'Load the data for the related competencies template.', + 'type' => 'read', + 'capabilities' => 'tool/lp:competencyread', + 'ajax' => true, ), ); diff --git a/admin/tool/lp/version.php b/admin/tool/lp/version.php index d0735e8d6de..0d523f71c03 100644 --- a/admin/tool/lp/version.php +++ b/admin/tool/lp/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2015052418; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2015052419; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2014110400; // Requires this Moodle version. $plugin->component = 'tool_lp'; // Full name of the plugin (used for diagnostics).