Form Class
Create object
Create a object of the Html\Form
class:
$form = new Html\Form(Registry $registry, Language $language);
Init
Init the class:
$form->init(array $attributeArray, array $optionArray) : self;
Legend
Append the legend:
$form->legend(string $html, array $attributeArray) : self;
Label
Append the label:
$form->label(string $html, array $attributeArray) : self;
Input
Append the color:
$form->color(array $attributeArray) : self;
Append the checkbox:
$form->checkbox(array $attributeArray) : self;
Append the date:
$form->date(array $attributeArray) : self;
Append the datetime:
$form->datetime(array $attributeArray) : self;
Append the email:
$form->email(array $attributeArray) : self;
Append the file:
$form->file(array $attributeArray) : self;
Append the hidden:
$form->hidden(array $attributeArray) : self;
Append the number:
$form->number(array $attributeArray) : self;
Append the password:
$form->password(array $attributeArray) : self;
Append the radio:
$form->radio(array $attributeArray) : self;
Append the range:
$form->range(array $attributeArray) : self;
Append the search:
$form->search(array $attributeArray) : self;
Append the time:
$form->time(array $attributeArray) : self;
Append the tel:
$form->tel(array $attributeArray) : self;
Append the text:
$form->text(array $attributeArray) : self;
Append the url:
$form->url(array $attributeArray) : self;
Append the week:
$form->week(array $attributeArray) : self;
Textarea
Append the textarea:
$form->textarea(array $attributeArray) : self;
Select
Append the select:
$form->select(array $optionArray, array $selectArray, array $attributeArray) : self;
Select range
Append the select range:
$form->selectRange(array $rangeArray, array $selectArray, array $attributeArray) : self;
Captcha
Append the captcha:
$form->captcha(string $type) : self;
Token
Append the token:
$form->token() : self;
Button
Append the button:
$form->button(string $text, array $attributeArray) : self;;
Append the submit:
$form->submit(string $text, array $attributeArray) : self;
Append the reset:
$form->reset(string $text, array $attributeArray) : self;
Html
Set HTML
to the form:
$form->html(string $html) : self;
Append
Append HTML
to the form:
$form->append(string $html) : self;
Prepend
Prepend HTML
to the form:
$form->prepend(string $html) : self;
Clear
Clear HTML
of the form:
$form->clear() : self;
Render
Render the form:
$form->render() : string;Edit on GitHub