Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 117... Línea 117...
117
        'description' => 'Handles ajax submission of course copy form.',
117
        'description' => 'Handles ajax submission of course copy form.',
118
        'type'        => 'read',
118
        'type'        => 'read',
119
        'ajax'          => true,
119
        'ajax'          => true,
120
        'loginrequired' => true,
120
        'loginrequired' => true,
121
    ),
121
    ),
-
 
122
    'core_badges_disable_badges' => [
-
 
123
        'classname'     => 'core_badges\external\disable_badges',
-
 
124
        'description'   => 'Disable badges',
-
 
125
        'type'          => 'write',
-
 
126
        'ajax'          => true,
-
 
127
    ],
-
 
128
    'core_badges_enable_badges' => [
-
 
129
        'classname'     => 'core_badges\external\enable_badges',
-
 
130
        'description'   => 'Enable badges',
-
 
131
        'type'          => 'write',
-
 
132
        'ajax'          => true,
-
 
133
    ],
-
 
134
    'core_badges_get_badge' => [
-
 
135
        'classname'     => 'core_badges\external\get_badge',
-
 
136
        'description'   => 'Retrieves a badge by id.',
-
 
137
        'type'          => 'read',
-
 
138
        'services'      => [MOODLE_OFFICIAL_MOBILE_SERVICE],
-
 
139
    ],
122
    'core_badges_get_user_badges' => array(
140
    'core_badges_get_user_badges' => array(
123
        'classname'     => 'core_badges_external',
141
        'classname'     => 'core_badges_external',
124
        'methodname'    => 'get_user_badges',
142
        'methodname'    => 'get_user_badges',
125
        'description'   => 'Returns the list of badges awarded to a user.',
143
        'description'   => 'Returns the list of badges awarded to a user.',
126
        'type'          => 'read',
144
        'type'          => 'read',
Línea 371... Línea 389...
371
        'classname' => 'core_cohort_external',
389
        'classname' => 'core_cohort_external',
372
        'methodname' => 'delete_cohorts',
390
        'methodname' => 'delete_cohorts',
373
        'classpath' => 'cohort/externallib.php',
391
        'classpath' => 'cohort/externallib.php',
374
        'description' => 'Deletes all specified cohorts.',
392
        'description' => 'Deletes all specified cohorts.',
375
        'type' => 'write',
393
        'type' => 'write',
376
        'capabilities' => 'moodle/cohort:manage'
394
        'capabilities' => 'moodle/cohort:manage',
-
 
395
        'ajax' => true,
377
    ),
396
    ),
378
    'core_cohort_get_cohort_members' => array(
397
    'core_cohort_get_cohort_members' => array(
379
        'classname' => 'core_cohort_external',
398
        'classname' => 'core_cohort_external',
380
        'methodname' => 'get_cohort_members',
399
        'methodname' => 'get_cohort_members',
381
        'classpath' => 'cohort/externallib.php',
400
        'classpath' => 'cohort/externallib.php',
Línea 549... Línea 568...
549
        'classpath' => 'course/externallib.php',
568
        'classpath' => 'course/externallib.php',
550
        'description' => 'Return information about a given module name and instance id',
569
        'description' => 'Return information about a given module name and instance id',
551
        'type' => 'read',
570
        'type' => 'read',
552
        'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
571
        'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
553
    ),
572
    ),
-
 
573
    // Todo Remove this entry in Moodle 6.0 (MDL-83530).
554
    'core_course_get_module' => array(
574
    'core_course_get_module' => array(
555
        'classname'   => 'core_course_external',
575
        'classname'   => 'core_course_external',
556
        'methodname'  => 'get_module',
576
        'methodname'  => 'get_module',
557
        'classpath'   => 'course/externallib.php',
577
        'classpath'   => 'course/externallib.php',
-
 
578
        'description' => '** DEPRECATED ** Please do not call this function any more (will be removed in Moodle 6.0).'
558
        'description' => 'Returns html with one activity module on course page',
579
            . 'Returns html with one activity module on course page.'
-
 
580
            . 'Use fragment API using component core_courseformat and fragment cmitem instead.',
559
        'type'        => 'read',
581
        'type'        => 'read',
560
        'ajax'        => true,
582
        'ajax'        => true,
561
    ),
583
    ),
562
    'core_courseformat_file_handlers' => [
584
    'core_courseformat_file_handlers' => [
563
        'classname'     => 'core_courseformat\external\file_handlers',
585
        'classname'     => 'core_courseformat\external\file_handlers',
Línea 569... Línea 591...
569
        'classname'     => 'core_courseformat\external\get_state',
591
        'classname'     => 'core_courseformat\external\get_state',
570
        'description'   => 'Get the current course state.',
592
        'description'   => 'Get the current course state.',
571
        'type'          => 'read',
593
        'type'          => 'read',
572
        'ajax'          => true,
594
        'ajax'          => true,
573
    ],
595
    ],
-
 
596
    'core_courseformat_new_module' => [
-
 
597
        'classname'     => 'core_courseformat\external\new_module',
-
 
598
        'methodname'    => 'execute',
-
 
599
        'description'   => 'Create a new module to course.',
-
 
600
        'type'          => 'write',
-
 
601
        'ajax'          => true,
-
 
602
        'capabilities'  => 'moodle/course:manageactivities',
-
 
603
    ],
574
    'core_courseformat_update_course' => [
604
    'core_courseformat_update_course' => [
575
        'classname'     => 'core_courseformat\external\update_course',
605
        'classname'     => 'core_courseformat\external\update_course',
576
        'methodname'    => 'execute',
606
        'methodname'    => 'execute',
577
        'description'   => 'Update course contents.',
607
        'description'   => 'Update course contents.',
578
        'type'          => 'write',
608
        'type'          => 'write',
579
        'ajax'          => true,
609
        'ajax'          => true,
580
        'capabilities'  => 'moodle/course:sectionvisibility, moodle/course:activityvisibility',
610
        'capabilities'  => 'moodle/course:sectionvisibility, moodle/course:activityvisibility',
581
    ],
611
    ],
-
 
612
    'core_courseformat_create_module' => [
-
 
613
        'classname'     => 'core_courseformat\external\create_module',
-
 
614
        'methodname'    => 'execute',
-
 
615
        'description'   => '** DEPRECATED ** Please do not call this function any more. ' .
-
 
616
            'Use core_courseformat_new_module instead. ' .
-
 
617
            'Add module to course.',
-
 
618
        'type'          => 'write',
-
 
619
        'ajax'          => true,
-
 
620
        'capabilities'  => 'moodle/course:manageactivities',
-
 
621
    ],
-
 
622
    // Todo Remove this entry in Moodle 6.0 (MDL-83530).
582
    'core_course_edit_module' => array(
623
    'core_course_edit_module' => array(
583
        'classname'   => 'core_course_external',
624
        'classname'   => 'core_course_external',
584
        'methodname'  => 'edit_module',
625
        'methodname'  => 'edit_module',
585
        'classpath'   => 'course/externallib.php',
626
        'classpath'   => 'course/externallib.php',
-
 
627
        'description' => '** DEPRECATED ** Please do not call this function any more (will be removed in Moodle 6.0).'
586
        'description' => 'Performs an action on course module (change visibility, duplicate, delete, etc.)',
628
            . ' Performs an action on course module (change visibility, duplicate, delete, etc.)'
-
 
629
            . ' Use core_courseformat_update_course instead.',
587
        'type'        => 'write',
630
        'type'        => 'write',
588
        'ajax'        => true,
631
        'ajax'        => true,
589
    ),
632
    ),
-
 
633
    // Todo Remove this entry in Moodle 6.0 (MDL-83530).
590
    'core_course_edit_section' => array(
634
    'core_course_edit_section' => array(
591
        'classname'   => 'core_course_external',
635
        'classname'   => 'core_course_external',
592
        'methodname'  => 'edit_section',
636
        'methodname'  => 'edit_section',
593
        'classpath'   => 'course/externallib.php',
637
        'classpath'   => 'course/externallib.php',
-
 
638
        'description' => '** DEPRECATED ** Please do not call this function any more (will be removed in Moodle 6.0).'
594
        'description' => 'Performs an action on course section (change visibility, set marker, delete)',
639
            . 'Performs an action on course section (change visibility, set marker, delete)'
-
 
640
            . ' Use core_courseformat_update_course instead.',
595
        'type'        => 'write',
641
        'type'        => 'write',
596
        'ajax'        => true,
642
        'ajax'        => true,
597
    ),
643
    ),
598
    'core_course_get_courses' => array(
644
    'core_course_get_courses' => array(
599
        'classname' => 'core_course_external',
645
        'classname' => 'core_course_external',
Línea 806... Línea 852...
806
        'methodname' => 'get_potential_users',
852
        'methodname' => 'get_potential_users',
807
        'classpath' => 'enrol/externallib.php',
853
        'classpath' => 'enrol/externallib.php',
808
        'description' => 'Get the list of potential users to enrol',
854
        'description' => 'Get the list of potential users to enrol',
809
        'ajax' => true,
855
        'ajax' => true,
810
        'type' => 'read',
856
        'type' => 'read',
811
        'capabilities' => 'moodle/course:enrolreview'
857
        'capabilities' => 'moodle/course:enrolreview',
-
 
858
        'readonlysession' => true,
812
    ),
859
    ),
813
    'core_enrol_search_users' => [
860
    'core_enrol_search_users' => [
814
        'classname' => 'core_enrol_external',
861
        'classname' => 'core_enrol_external',
815
        'methodname' => 'search_users',
862
        'methodname' => 'search_users',
816
        'classpath' => 'enrol/externallib.php',
863
        'classpath' => 'enrol/externallib.php',
Línea 998... Línea 1045...
998
        'classname' => 'core_grades\external\create_gradecategories',
1045
        'classname' => 'core_grades\external\create_gradecategories',
999
        'description' => 'Create grade categories inside a course gradebook.',
1046
        'description' => 'Create grade categories inside a course gradebook.',
1000
        'type' => 'write',
1047
        'type' => 'write',
1001
        'capabilities' => 'moodle/grade:manage',
1048
        'capabilities' => 'moodle/grade:manage',
1002
    ),
1049
    ),
1003
    'core_grades_get_enrolled_users_for_search_widget' => array (
-
 
1004
        'classname' => 'core_grades\external\get_enrolled_users_for_search_widget',
-
 
1005
        'description' => '** DEPRECATED ** Please do not call this function any more. ' .
-
 
1006
            'Use core_grades_get_enrolled_users_for_selector instead. ' .
-
 
1007
            'Returns the enrolled users within and map some fields to the returned array of user objects.',
-
 
1008
        'type' => 'read',
-
 
1009
        'ajax' => true,
-
 
1010
        'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
-
 
1011
    ),
-
 
1012
    'core_grades_get_enrolled_users_for_selector' => array (
1050
    'core_grades_get_enrolled_users_for_selector' => array (
1013
        'classname' => 'core_grades\external\get_enrolled_users_for_selector',
1051
        'classname' => 'core_grades\external\get_enrolled_users_for_selector',
1014
        'description' => 'Returns the enrolled users within and map some fields to the returned array of user objects.',
1052
        'description' => 'Returns the enrolled users within and map some fields to the returned array of user objects.',
1015
        'type' => 'read',
1053
        'type' => 'read',
1016
        'ajax' => true,
1054
        'ajax' => true,
1017
        'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
1055
        'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
1018
    ),
1056
    ),
1019
    'core_grades_get_groups_for_search_widget' => [
-
 
1020
        'classname' => 'core_group\external\get_groups_for_selector',
-
 
1021
        'description' => '** DEPRECATED ** Please do not call this function any more. ' .
-
 
1022
            'Use core_group_get_groups_for_selector instead. ' .
-
 
1023
            'Get the group/(s) for a course',
-
 
1024
        'type' => 'read',
-
 
1025
        'ajax' => true,
-
 
1026
        'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
-
 
1027
    ],
-
 
1028
    'core_grades_get_groups_for_selector' => [
1057
    'core_grades_get_groups_for_selector' => [
1029
        'classname' => 'core_group\external\get_groups_for_selector',
1058
        'classname' => 'core_group\external\get_groups_for_selector',
1030
        'description' => '** DEPRECATED ** Please do not call this function any more. ' .
1059
        'description' => '** DEPRECATED ** Please do not call this function any more. ' .
1031
            'Use core_group_get_groups_for_selector instead. ' .
1060
            'Use core_group_get_groups_for_selector instead. ' .
1032
            'Get the group/(s) for a course',
1061
            'Get the group/(s) for a course',
Línea 1604... Línea 1633...
1604
        'classname'     => '\core_message\external\get_unread_notification_count',
1633
        'classname'     => '\core_message\external\get_unread_notification_count',
1605
        'description'   => 'Get number of unread notifications.',
1634
        'description'   => 'Get number of unread notifications.',
1606
        'type'          => 'read',
1635
        'type'          => 'read',
1607
        'services'      => [MOODLE_OFFICIAL_MOBILE_SERVICE],
1636
        'services'      => [MOODLE_OFFICIAL_MOBILE_SERVICE],
1608
    ],
1637
    ],
-
 
1638
    'core_message_set_default_notification' => [
-
 
1639
        'classname'   => 'core_message\external\message_set_default_notification',
-
 
1640
        'description' => 'Set the default value for a given notification preference',
-
 
1641
        'capabilities' => 'moodle/site:config',
-
 
1642
        'type'        => 'write',
-
 
1643
        'ajax'        => true,
-
 
1644
    ],
1609
    'core_my_view_page' => [
1645
    'core_my_view_page' => [
1610
        'classname'     => '\core_my\external\view_page',
1646
        'classname'     => '\core_my\external\view_page',
1611
        'methodname'    => 'execute',
1647
        'methodname'    => 'execute',
1612
        'description'   => 'Trigger the My or Dashboard viewed event.',
1648
        'description'   => 'Trigger the My or Dashboard viewed event.',
1613
        'type'          => 'write',
1649
        'type'          => 'write',
Línea 1680... Línea 1716...
1680
        'description' => 'Load a template and its dependencies for a renderable',
1716
        'description' => 'Load a template and its dependencies for a renderable',
1681
        'type' => 'read',
1717
        'type' => 'read',
1682
        'loginrequired' => false,
1718
        'loginrequired' => false,
1683
        'ajax' => true,
1719
        'ajax' => true,
1684
    ),
1720
    ),
1685
    'core_output_load_fontawesome_icon_map' => array(
-
 
1686
        'classname' => 'core\output\external',
-
 
1687
        'methodname' => 'load_fontawesome_icon_map',
-
 
1688
        'description' => 'Load the mapping of names to icons',
-
 
1689
        'type' => 'read',
-
 
1690
        'loginrequired' => false,
-
 
1691
        'ajax' => true,
-
 
1692
    ),
-
 
1693
    'core_output_load_fontawesome_icon_system_map' => array(
1721
    'core_output_load_fontawesome_icon_system_map' => array(
1694
        'classname' => 'core\external\output\icon_system\load_fontawesome_map',
1722
        'classname' => 'core\external\output\icon_system\load_fontawesome_map',
1695
        'description' => 'Load the mapping of moodle pix names to fontawesome icon names',
1723
        'description' => 'Load the mapping of moodle pix names to fontawesome icon names',
1696
        'type' => 'read',
1724
        'type' => 'read',
1697
        'loginrequired' => false,
1725
        'loginrequired' => false,
Línea 2004... Línea 2032...
2004
        'description' => 'Returns general information about files in the user private files area.',
2032
        'description' => 'Returns general information about files in the user private files area.',
2005
        'type' => 'read',
2033
        'type' => 'read',
2006
        'capabilities' => 'moodle/user:manageownfiles',
2034
        'capabilities' => 'moodle/user:manageownfiles',
2007
        'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2035
        'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2008
    ),
2036
    ),
-
 
2037
    'core_user_prepare_private_files_for_edition' => [
-
 
2038
        'classname'     => '\core_user\external\prepare_private_files_for_edition',
-
 
2039
        'description'   => 'Prepares the draft area for user private files.',
-
 
2040
        'type'          => 'write',
-
 
2041
        'capabilities'  => 'moodle/user:manageownfiles',
-
 
2042
        'services'      => [MOODLE_OFFICIAL_MOBILE_SERVICE],
-
 
2043
    ],
-
 
2044
    'core_user_update_private_files' => [
-
 
2045
        'classname'     => '\core_user\external\update_private_files',
-
 
2046
        'description'   => 'Copy files from a draft area to users private files area.',
-
 
2047
        'type'          => 'write',
-
 
2048
        'capabilities'  => 'moodle/user:manageownfiles',
-
 
2049
        'services'      => [MOODLE_OFFICIAL_MOBILE_SERVICE],
-
 
2050
    ],
Línea 2009... Línea 2051...
2009
 
2051
 
2010
    // Competencies functions.
2052
    // Competencies functions.
2011
    'core_competency_create_competency_framework' => array(
2053
    'core_competency_create_competency_framework' => array(
2012
        'classname'    => 'core_competency\external',
2054
        'classname'    => 'core_competency\external',
Línea 2802... Línea 2844...
2802
        'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2844
        'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2803
    ),
2845
    ),
Línea 2804... Línea 2846...
2804
 
2846
 
2805
    // Filters functions.
2847
    // Filters functions.
2806
    'core_filters_get_available_in_context' => array(
2848
    'core_filters_get_available_in_context' => array(
2807
        'classname'   => 'core_filters\external',
-
 
2808
        'methodname'  => 'get_available_in_context',
2849
        'classname'   => 'core_filters\external\get_available_in_context',
2809
        'description' => 'Returns the filters available in the given contexts.',
2850
        'description' => 'Returns the filters available in the given contexts.',
2810
        'type'        => 'read',
2851
        'type'        => 'read',
2811
        'services'    => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2852
        'services'    => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2812
    ),
2853
    ),
Línea 3193... Línea 3234...
3193
        'classname'   => 'core\external\moodlenet_send_course',
3234
        'classname'   => 'core\external\moodlenet_send_course',
3194
        'description' => 'Send course to MoodleNet',
3235
        'description' => 'Send course to MoodleNet',
3195
        'type'        => 'read',
3236
        'type'        => 'read',
3196
        'ajax'        => true,
3237
        'ajax'        => true,
3197
    ],
3238
    ],
-
 
3239
    'core_output_poll_stored_progress' => [
-
 
3240
        'classname'   => 'core\external\output\poll_stored_progress',
-
 
3241
        'methodname'  => 'execute',
-
 
3242
        'description' => 'Polls for the current percentage progress of a stored progress object',
-
 
3243
        'type'        => 'read',
-
 
3244
        'ajax'        => true,
-
 
3245
        'readonlysession' => true,
-
 
3246
    ],
-
 
3247
    'core_ai_delete_provider_instance' => [
-
 
3248
        'classname'   => \core_ai\external\delete_provider_instance::class,
-
 
3249
        'description' => 'Delete a provider instance',
-
 
3250
        'type'        => 'write',
-
 
3251
        'ajax'        => true,
-
 
3252
    ],
-
 
3253
    'core_ai_set_policy_status' => [
-
 
3254
        'classname'   => 'core_ai\external\set_policy_status',
-
 
3255
        'description' => 'Set a users AI policy acceptance',
-
 
3256
        'type'        => 'write',
-
 
3257
        'ajax'        => true,
-
 
3258
        'services'    => [MOODLE_OFFICIAL_MOBILE_SERVICE],
-
 
3259
    ],
-
 
3260
    'core_ai_get_policy_status' => [
-
 
3261
        'classname'   => \core_ai\external\get_policy_status::class,
-
 
3262
        'description' => 'Get a users AI policy acceptance',
-
 
3263
        'type'        => 'read',
-
 
3264
        'ajax'        => true,
-
 
3265
        'services'    => [MOODLE_OFFICIAL_MOBILE_SERVICE],
-
 
3266
    ],
-
 
3267
    'core_ai_set_action' => [
-
 
3268
        'classname'   => 'core_ai\external\set_action',
-
 
3269
        'description' => 'Update action',
-
 
3270
        'type'        => 'write',
-
 
3271
        'ajax'        => true,
-
 
3272
    ],
-
 
3273
    'core_ai_set_provider_status' => [
-
 
3274
        'classname'   => \core_ai\external\set_provider_status::class,
-
 
3275
        'description' => 'Set a providers status',
-
 
3276
        'type'        => 'write',
-
 
3277
        'ajax'        => true,
-
 
3278
    ],
-
 
3279
    'core_ai_set_provider_order' => [
-
 
3280
        'classname' => \core_ai\external\set_provider_order::class,
-
 
3281
        'description' => 'Set the order of a provider',
-
 
3282
        'type' => 'write',
-
 
3283
        'ajax' => true,
-
 
3284
    ],
-
 
3285
    'core_sms_set_gateway_status' => [
-
 
3286
        'classname'   => 'core_sms\external\sms_gateway_status',
-
 
3287
        'description' => 'Set the sms gateway status',
-
 
3288
        'type'        => 'write',
-
 
3289
        'ajax'        => true,
-
 
3290
    ],
-
 
3291
    'core_question_move_questions' => [
-
 
3292
        'classname' => '\core_question\external\move_questions',
-
 
3293
        'description' => 'Bulk move questions to a new category.',
-
 
3294
        'type' => 'write',
-
 
3295
        'ajax' => true,
-
 
3296
    ],
-
 
3297
    'core_question_search_shared_banks' => [
-
 
3298
        'classname' => '\core_question\external\search_shared_banks',
-
 
3299
        'description' => 'Get a list of shared question banks filtered by a search term.',
-
 
3300
        'type' => 'read',
-
 
3301
        'ajax' => true,
-
 
3302
    ],
-
 
3303
    'core_message_set_unsent_message' => [
-
 
3304
        'classname' => 'core_message\external\set_unsent_message',
-
 
3305
        'description' => 'Store an unsent message string',
-
 
3306
        'type' => 'write',
-
 
3307
        'ajax' => true,
-
 
3308
    ],
-
 
3309
    'core_message_get_unsent_message' => [
-
 
3310
        'classname' => 'core_message\external\get_unsent_message',
-
 
3311
        'description' => 'Get an unsent message string',
-
 
3312
        'type' => 'read',
-
 
3313
        'ajax' => true,
-
 
3314
    ],
3198
);
3315
);
Línea 3199... Línea 3316...
3199
 
3316
 
3200
$services = array(
3317
$services = array(
3201
   'Moodle mobile web service'  => array(
3318
   'Moodle mobile web service'  => array(