forked from koala-framework/koala-framework
/
Form.php
23 lines (23 loc) · 878 Bytes
/
Form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
class Kwc_Form_Field_TextField_Form extends Kwc_Form_Field_Abstract_Form
{
protected function _initFields()
{
parent::_initFields();
$this->fields->add(new Kwf_Form_Field_NumberField('width', trlKwf('Width')))
->setComment('px')
->setWidth(50)
->setAllowNegative(false)
->setAllowDecimal(false);
$this->fields->add(new Kwf_Form_Field_TextField('default_value', trlKwf('Default Value')));
$this->fields->add(new Kwf_Form_Field_Select('vtype', trlKwf('Validator')))
->setShowNoSelection(true)
->setEmptyText(trlKwf('none'))
->setValues(array(
'email' => trlKwf('E-Mail'),
'url' => trlKwf('Url'),
'alpha' => trlKwf('Alpha'),
'alphanum' => trlKwf('Alphanumeric'),
));
}
}