‪TYPO3CMS  11.5
SubmitViewHelper.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
47 {
51  protected ‪$tagName = 'input';
52 
56  public function ‪initializeArguments()
57  {
58  parent::initializeArguments();
59  $this->registerTagAttribute(
60  'disabled',
61  'string',
62  'Specifies that the input element should be disabled when the page loads'
63  );
64  $this->registerUniversalTagAttributes();
65  }
66 
72  public function ‪render()
73  {
74  $name = $this->‪getName();
76 
77  $this->tag->addAttribute('type', 'submit');
78  $this->tag->addAttribute('value', $this->‪getValueAttribute());
79  if (!empty($name)) {
80  $this->tag->addAttribute('name', $name);
81  }
82 
83  return $this->tag->render();
84  }
85 }
‪TYPO3\CMS\Fluid\ViewHelpers\Form\SubmitViewHelper\render
‪string render()
Definition: SubmitViewHelper.php:71
‪TYPO3\CMS\Fluid\ViewHelpers\Form
Definition: AbstractFormFieldViewHelper.php:16
‪TYPO3\CMS\Fluid\ViewHelpers\Form\SubmitViewHelper\$tagName
‪string $tagName
Definition: SubmitViewHelper.php:50
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper\registerFieldNameForFormTokenGeneration
‪registerFieldNameForFormTokenGeneration($fieldName)
Definition: AbstractFormViewHelper.php:106
‪TYPO3\CMS\Fluid\ViewHelpers\Form\SubmitViewHelper\initializeArguments
‪initializeArguments()
Definition: SubmitViewHelper.php:55
‪TYPO3\CMS\Fluid\ViewHelpers\Form\SubmitViewHelper
Definition: SubmitViewHelper.php:47
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper
Definition: AbstractFormFieldViewHelper.php:30
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\getName
‪string getName()
Definition: AbstractFormFieldViewHelper.php:90
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\getValueAttribute
‪mixed getValueAttribute()
Definition: AbstractFormFieldViewHelper.php:151