TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
SubmitViewHelper.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Fluid\ViewHelpers\Form
;
3
4
/* *
5
* This script is backported from the TYPO3 Flow package "TYPO3.Fluid". *
6
* *
7
* It is free software; you can redistribute it and/or modify it under *
8
* the terms of the GNU Lesser General Public License, either version 3 *
9
* of the License, or (at your option) any later version. *
10
* *
11
* The TYPO3 project - inspiring people to share! *
12
* */
13
35
class
SubmitViewHelper
extends
\TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper
{
36
40
protected
$tagName
=
'input'
;
41
48
public
function
initializeArguments
() {
49
parent::initializeArguments();
50
$this->
registerTagAttribute
(
'disabled'
,
'string'
,
'Specifies that the input element should be disabled when the page loads'
);
51
$this->
registerUniversalTagAttributes
();
52
}
53
60
public
function
render
() {
61
$name = $this->
getName
();
62
$this->
registerFieldNameForFormTokenGeneration
($name);
63
64
$this->tag->addAttribute(
'type'
,
'submit'
);
65
$this->tag->addAttribute(
'name'
, $name);
66
$this->tag->addAttribute(
'value'
, $this->
getValue
());
67
68
return
$this->tag->render();
69
}
70
}
TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\getValue
getValue($convertObjects=TRUE)
Definition:
AbstractFormFieldViewHelper.php:102
TYPO3\CMS\Fluid\ViewHelpers\Form
Definition:
AbstractFormFieldViewHelper.php:2
TYPO3\CMS\Fluid\ViewHelpers\Form\SubmitViewHelper\render
render()
Definition:
SubmitViewHelper.php:60
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper\registerTagAttribute
registerTagAttribute($name, $type, $description, $required=FALSE, $default=NULL)
Definition:
AbstractTagBasedViewHelper.php:94
TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper\registerFieldNameForFormTokenGeneration
registerFieldNameForFormTokenGeneration($fieldName)
Definition:
AbstractFormViewHelper.php:88
TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper
Definition:
AbstractFormFieldViewHelper.php:31
TYPO3\CMS\Fluid\ViewHelpers\Form\SubmitViewHelper\initializeArguments
initializeArguments()
Definition:
SubmitViewHelper.php:48
TYPO3\CMS\Fluid\ViewHelpers\Form\SubmitViewHelper
Definition:
SubmitViewHelper.php:35
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper\registerUniversalTagAttributes
registerUniversalTagAttributes()
Definition:
AbstractTagBasedViewHelper.php:106
TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\getName
getName()
Definition:
AbstractFormFieldViewHelper.php:60
TYPO3\CMS\Fluid\ViewHelpers\Form\SubmitViewHelper\$tagName
$tagName
Definition:
SubmitViewHelper.php:40
typo3
sysext
fluid
Classes
ViewHelpers
Form
SubmitViewHelper.php
Generated on Wed Aug 7 2019 09:52:26 for TYPO3 CMS by
1.8.13