summaryrefslogtreecommitdiff
path: root/platform/www/lib/plugins/bureaucracy/interfaces/bureaucracy_handler_interface.php
blob: 41c461fe864757a3e79d00788f6cd228bc6730ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace dokuwiki\plugin\bureaucracy\interfaces;

interface bureaucracy_handler_interface {

    /**
     * Handle the data incoming from the form.
     *
     * @param \helper_plugin_bureaucracy_field[] $fields the list of fields in the form
     * @param string                             $thanks the thank you message as defined in the form
     *                                                   or default one. Might be modified by the action
     *                                                   before returned
     *
     * @return bool|string false on error, $thanks on success
     *
     */
    public function handleData($fields, $thanks);
}