You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
1.1 KiB

  1. <?php
  2. /**
  3. * Class helper_plugin_bureaucracy_fieldsubject
  4. *
  5. * Defines own subject for mail action from this form
  6. */
  7. class helper_plugin_bureaucracy_fieldsubject extends helper_plugin_bureaucracy_field {
  8. /**
  9. * Arguments:
  10. * - cmd
  11. * - subjecttext
  12. */
  13. /**
  14. * Render the field as XHTML
  15. *
  16. * @params array $params Additional HTML specific parameters
  17. * @params Doku_Form $form The target Doku_Form object
  18. * @params int $formid unique identifier of the form which contains this field
  19. */
  20. public function renderfield($params, Doku_Form $form, $formid) {
  21. $this->_handlePreload();
  22. }
  23. /**
  24. * Handle a post to the field
  25. *
  26. * @param string $value null
  27. * @param helper_plugin_bureaucracy_field[] $fields (reference) form fields (POST handled upto $this field)
  28. * @param int $index index number of field in form
  29. * @param int $formid unique identifier of the form which contains this field
  30. * @return bool Whether the passed value is valid
  31. */
  32. function handle_post($value, &$fields, $index, $formid) {
  33. return true;
  34. }
  35. }