private static function get_plugin_structure() {
        return new external_single_structure(
            array(
                'type' => new external_value(PARAM_TEXT, 'submission plugin type'),
                'name' => new external_value(PARAM_TEXT, 'submission plugin name'),
                'fileareas' => new external_multiple_structure(
                    new external_single_structure(
                        array (
                            'area' => new external_value (PARAM_TEXT, 'file area'),
                            'files' => new external_files('files', VALUE_OPTIONAL),
                        )
                    ), 'fileareas', VALUE_OPTIONAL
                ),
                'editorfields' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'name' => new external_value(PARAM_TEXT, 'field name'),
                            'description' => new external_value(PARAM_RAW, 'field description'),
                            'text' => new external_value (PARAM_RAW, 'field value'),
                            'format' => new external_format_value ('text')
                        )
                    )
                    , 'editorfields', VALUE_OPTIONAL
                )
            )
        );
    }
private static function get_plugin_structure() {
        return new external_single_structure(
            array(
                'type' => new external_value(PARAM_TEXT, 'submission plugin type'),
                'name' => new external_value(PARAM_TEXT, 'submission plugin name'),
                'fileareas' => new external_multiple_structure(
                    new external_single_structure(
                        array (
                            'area' => new external_value (PARAM_TEXT, 'file area'),
                            'files' => new external_files('files', VALUE_OPTIONAL),
                        )
                    ), 'fileareas', VALUE_OPTIONAL
                ),
                'editorfields' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'name' => new external_value(PARAM_TEXT, 'field name'),
                            'description' => new external_value(PARAM_RAW, 'field description'),
                            'text' => new external_value (PARAM_RAW, 'field value'),
                            'format' => new external_format_value ('text')
                        )
                    )
                    , 'editorfields', VALUE_OPTIONAL
                )
            )
        );
    }
private static function get_plugin_structure ( ) { return new external_single_structure ( array ( 'type' => new external_value ( PARAM_TEXT , 'submission plugin type' ) , 'name' => new external_value ( PARAM_TEXT , 'submission plugin name' ) , 'fileareas' => new external_multiple_structure ( new external_single_structure ( array ( 'area' => new external_value ( PARAM_TEXT , 'file area' ) , 'files' => new external_files ( 'files' , VALUE_OPTIONAL ) , ) ) , 'fileareas' , VALUE_OPTIONAL ) , 'editorfields' => new external_multiple_structure ( new external_single_structure ( array ( 'name' => new external_value ( PARAM_TEXT , 'field name' ) , 'description' => new external_value ( PARAM_RAW , 'field description' ) , 'text' => new external_value ( PARAM_RAW , 'field value' ) , 'format' => new external_format_value ( 'text' ) ) ) , 'editorfields' , VALUE_OPTIONAL ) ) ) ; }
Creates an assignment plugin structure.

@return external_single_structure the plugin structure
Creates an assignment plugin structure .