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