Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 94... Línea 94...
94
    public static function execute_returns(): external_single_structure {
94
    public static function execute_returns(): external_single_structure {
95
        return new external_single_structure([
95
        return new external_single_structure([
96
            'gradeItems' => new external_multiple_structure(
96
            'gradeItems' => new external_multiple_structure(
97
                new external_single_structure([
97
                new external_single_structure([
98
                    'id' => new external_value(PARAM_ALPHANUM, 'An ID for the grade item', VALUE_REQUIRED),
98
                    'id' => new external_value(PARAM_ALPHANUM, 'An ID for the grade item', VALUE_REQUIRED),
99
                    'itemname' => new external_value(PARAM_CLEANHTML, 'The full name of the grade item', VALUE_REQUIRED),
99
                    'itemname' => new external_value(PARAM_RAW, 'The full name of the grade item', VALUE_REQUIRED),
100
                    'category' => new external_value(PARAM_TEXT, 'The grade category of the grade item', VALUE_OPTIONAL),
100
                    'category' => new external_value(PARAM_TEXT, 'The grade category of the grade item', VALUE_OPTIONAL),
101
                ])
101
                ])
102
            ),
102
            ),
103
            'warnings' => new external_warnings(),
103
            'warnings' => new external_warnings(),
104
        ]);
104
        ]);