public static function get_chats_by_courses_returns() {
        return new external_single_structure(
            array(
                'chats' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'id' => new external_value(PARAM_INT, 'Chat id'),
                            'coursemodule' => new external_value(PARAM_INT, 'Course module id'),
                            'course' => new external_value(PARAM_INT, 'Course id'),
                            'name' => new external_value(PARAM_RAW, 'Chat name'),
                            'intro' => new external_value(PARAM_RAW, 'The Chat intro'),
                            'introformat' => new external_format_value('intro'),
                            'introfiles' => new external_files('Files in the introduction text', VALUE_OPTIONAL),
                            'chatmethod' => new external_value(PARAM_PLUGIN, 'chat method (sockets, ajax, header_js)',
                                VALUE_OPTIONAL),
                            'keepdays' => new external_value(PARAM_INT, 'keep days', VALUE_OPTIONAL),
                            'studentlogs' => new external_value(PARAM_INT, 'student logs visible to everyone', VALUE_OPTIONAL),
                            'chattime' => new external_value(PARAM_INT, 'chat time', VALUE_OPTIONAL),
                            'schedule' => new external_value(PARAM_INT, 'schedule type', VALUE_OPTIONAL),
                            'timemodified' => new external_value(PARAM_INT, 'time of last modification', VALUE_OPTIONAL),
                            'section' => new external_value(PARAM_INT, 'course section id', VALUE_OPTIONAL),
                            'visible' => new external_value(PARAM_BOOL, 'visible', VALUE_OPTIONAL),
                            'groupmode' => new external_value(PARAM_INT, 'group mode', VALUE_OPTIONAL),
                            'groupingid' => new external_value(PARAM_INT, 'group id', VALUE_OPTIONAL),
                        ), 'Chats'
                    )
                ),
                'warnings' => new external_warnings(),
            )
        );
    }
public static function get_chats_by_courses_returns() {
        return new external_single_structure(
            array(
                'chats' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'id' => new external_value(PARAM_INT, 'Chat id'),
                            'coursemodule' => new external_value(PARAM_INT, 'Course module id'),
                            'course' => new external_value(PARAM_INT, 'Course id'),
                            'name' => new external_value(PARAM_RAW, 'Chat name'),
                            'intro' => new external_value(PARAM_RAW, 'The Chat intro'),
                            'introformat' => new external_format_value('intro'),
                            'introfiles' => new external_files('Files in the introduction text', VALUE_OPTIONAL),
                            'chatmethod' => new external_value(PARAM_PLUGIN, 'chat method (sockets, ajax, header_js)',
                                VALUE_OPTIONAL),
                            'keepdays' => new external_value(PARAM_INT, 'keep days', VALUE_OPTIONAL),
                            'studentlogs' => new external_value(PARAM_INT, 'student logs visible to everyone', VALUE_OPTIONAL),
                            'chattime' => new external_value(PARAM_INT, 'chat time', VALUE_OPTIONAL),
                            'schedule' => new external_value(PARAM_INT, 'schedule type', VALUE_OPTIONAL),
                            'timemodified' => new external_value(PARAM_INT, 'time of last modification', VALUE_OPTIONAL),
                            'section' => new external_value(PARAM_INT, 'course section id', VALUE_OPTIONAL),
                            'visible' => new external_value(PARAM_BOOL, 'visible', VALUE_OPTIONAL),
                            'groupmode' => new external_value(PARAM_INT, 'group mode', VALUE_OPTIONAL),
                            'groupingid' => new external_value(PARAM_INT, 'group id', VALUE_OPTIONAL),
                        ), 'Chats'
                    )
                ),
                'warnings' => new external_warnings(),
            )
        );
    }
public static function get_chats_by_courses_returns ( ) { return new external_single_structure ( array ( 'chats' => new external_multiple_structure ( new external_single_structure ( array ( 'id' => new external_value ( PARAM_INT , 'Chat id' ) , 'coursemodule' => new external_value ( PARAM_INT , 'Course module id' ) , 'course' => new external_value ( PARAM_INT , 'Course id' ) , 'name' => new external_value ( PARAM_RAW , 'Chat name' ) , 'intro' => new external_value ( PARAM_RAW , 'The Chat intro' ) , 'introformat' => new external_format_value ( 'intro' ) , 'introfiles' => new external_files ( 'Files in the introduction text' , VALUE_OPTIONAL ) , 'chatmethod' => new external_value ( PARAM_PLUGIN , 'chat method (sockets, ajax, header_js)' , VALUE_OPTIONAL ) , 'keepdays' => new external_value ( PARAM_INT , 'keep days' , VALUE_OPTIONAL ) , 'studentlogs' => new external_value ( PARAM_INT , 'student logs visible to everyone' , VALUE_OPTIONAL ) , 'chattime' => new external_value ( PARAM_INT , 'chat time' , VALUE_OPTIONAL ) , 'schedule' => new external_value ( PARAM_INT , 'schedule type' , VALUE_OPTIONAL ) , 'timemodified' => new external_value ( PARAM_INT , 'time of last modification' , VALUE_OPTIONAL ) , 'section' => new external_value ( PARAM_INT , 'course section id' , VALUE_OPTIONAL ) , 'visible' => new external_value ( PARAM_BOOL , 'visible' , VALUE_OPTIONAL ) , 'groupmode' => new external_value ( PARAM_INT , 'group mode' , VALUE_OPTIONAL ) , 'groupingid' => new external_value ( PARAM_INT , 'group id' , VALUE_OPTIONAL ) , ) , 'Chats' ) ) , 'warnings' => new external_warnings ( ) , ) ) ; }
Describes the get_chats_by_courses return value.

@return external_single_structure
@since Moodle 3.0
Describes the get_chats_by_courses return value .