diff options
Diffstat (limited to 'platform/www/lib/plugins/bureaucracy/interfaces/bureaucracy_handler_interface.php')
-rw-r--r-- | platform/www/lib/plugins/bureaucracy/interfaces/bureaucracy_handler_interface.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/platform/www/lib/plugins/bureaucracy/interfaces/bureaucracy_handler_interface.php b/platform/www/lib/plugins/bureaucracy/interfaces/bureaucracy_handler_interface.php new file mode 100644 index 0000000..41c461f --- /dev/null +++ b/platform/www/lib/plugins/bureaucracy/interfaces/bureaucracy_handler_interface.php @@ -0,0 +1,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); +} |