49 parent::initializeArguments();
50 $this->
registerTagAttribute(
'autofocus',
'string',
'Specifies that a button should automatically get focus when the page loads');
51 $this->
registerTagAttribute(
'disabled',
'string',
'Specifies that the input element should be disabled when the page loads');
52 $this->
registerTagAttribute(
'form',
'string',
'Specifies one or more forms the button belongs to');
53 $this->
registerTagAttribute(
'formaction',
'string',
'Specifies where to send the form-data when a form is submitted. Only for type="submit"');
54 $this->
registerTagAttribute(
'formenctype',
'string',
'Specifies how form-data should be encoded before sending it to a server. Only for type="submit" (e.g. "application/x-www-form-urlencoded", "multipart/form-data" or "text/plain")');
55 $this->
registerTagAttribute(
'formmethod',
'string',
'Specifies how to send the form-data (which HTTP method to use). Only for type="submit" (e.g. "get" or "post")');
56 $this->
registerTagAttribute(
'formnovalidate',
'string',
'Specifies that the form-data should not be validated on submission. Only for type="submit"');
57 $this->
registerTagAttribute(
'formtarget',
'string',
'Specifies where to display the response after submitting the form. Only for type="submit" (e.g. "_blank", "_self", "_parent", "_top", "framename")');
68 public function render($type =
'submit') {
72 $this->tag->addAttribute(
'type', $type);
73 $this->tag->addAttribute(
'name', $name);
74 $this->tag->addAttribute(
'value', $this->
getValue());
77 return $this->tag->render();
registerTagAttribute($name, $type, $description, $required=FALSE, $default=NULL)
registerUniversalTagAttributes()