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