diff options
author | Yaco <franco@reevo.org> | 2022-03-12 03:48:42 +0000 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2022-03-12 03:48:42 +0000 |
commit | 5a2b689265654f704d06eb2ea9ee1b21078edcfc (patch) | |
tree | b52e9ce5c8236d2ecf660950238c2dd3d42ad5d2 /platform/www/lib/plugins/bureaucracy/helper/fieldsubject.php | |
parent | 46377a425154286e3072880d55667a18b4518df1 (diff) |
add plugins: wrap, bureaucracy, phpwikify
Diffstat (limited to 'platform/www/lib/plugins/bureaucracy/helper/fieldsubject.php')
-rw-r--r-- | platform/www/lib/plugins/bureaucracy/helper/fieldsubject.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/platform/www/lib/plugins/bureaucracy/helper/fieldsubject.php b/platform/www/lib/plugins/bureaucracy/helper/fieldsubject.php new file mode 100644 index 0000000..f49c2b7 --- /dev/null +++ b/platform/www/lib/plugins/bureaucracy/helper/fieldsubject.php @@ -0,0 +1,37 @@ +<?php +/** + * Class helper_plugin_bureaucracy_fieldsubject + * + * Defines own subject for mail action from this form + */ +class helper_plugin_bureaucracy_fieldsubject extends helper_plugin_bureaucracy_field { + /** + * Arguments: + * - cmd + * - subjecttext + */ + + /** + * Render the field as XHTML + * + * @params array $params Additional HTML specific parameters + * @params Doku_Form $form The target Doku_Form object + * @params int $formid unique identifier of the form which contains this field + */ + public function renderfield($params, Doku_Form $form, $formid) { + $this->_handlePreload(); + } + + /** + * Handle a post to the field + * + * @param string $value null + * @param helper_plugin_bureaucracy_field[] $fields (reference) form fields (POST handled upto $this field) + * @param int $index index number of field in form + * @param int $formid unique identifier of the form which contains this field + * @return bool Whether the passed value is valid + */ + function handle_post($value, &$fields, $index, $formid) { + return true; + } +}
\ No newline at end of file |