blob: 0dfcce2534e539a4b67f47dd25858e2f345bb706 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
/**
* Class helper_plugin_bureaucracy_fieldtextarea
*
* Creates a multi-line input field
*/
class helper_plugin_bureaucracy_fieldtextarea extends helper_plugin_bureaucracy_field {
/**
* Arguments:
* - cmd
* - label
* - x123 (optional) as number of lines
* - ^ (optional)
*/
public function initialize($args) {
parent::initialize($args);
if (!isset($this->opt['class'])) {
$this->opt['class'] = '';
}
$this->opt['class'] .= ' textareafield';
}
protected $tpl =
'<label class="@@CLASS@@">
<span>@@DISPLAY@@</span>
<textarea name="@@NAME@@" id="@@ID@@" rows="@@ROWS|10@@" cols="10" class="edit @@OPTIONAL|required" required="required@@">@@VALUE@@</textarea>
</label>';
}
|