+ case 'textarea':
+ import('form.TextArea');
+ $el = new TextArea($params['name']);
+ if (isset($params['cols'])) $el->setColumns($params['cols']);
+ if (isset($params['rows'])) $el->setRows($params['rows']);
+ if (isset($params['maxlength'])) $el->setMaxLength($params['maxlength']);
+ break;
+
+ case 'checkbox':
+ import('form.Checkbox');
+ $el = new Checkbox($params['name']);
+ if (isset($params['checked'])) $el->setChecked($params['checked']);
+