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
TypeAttribute.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Form\Domain\Model\Attribute
;
3
22
class
TypeAttribute
extends
\TYPO3\CMS\Form\Domain\Model\Attribute\AbstractAttribute
{
23
27
protected
$allowedValues
= array(
28
'text'
,
29
'password'
,
30
'checkbox'
,
31
'radio'
,
32
'submit'
,
33
'reset'
,
34
'file'
,
35
'hidden'
,
36
'image'
,
37
'button'
38
);
39
49
public
function
getValue
() {
50
$attribute = strtolower((
string
) $this->value);
51
if
(empty($attribute) || !in_array($attribute, $this->allowedValues)) {
52
$attribute =
'text'
;
53
}
54
return
$attribute;
55
}
56
57
}
TYPO3\CMS\Form\Domain\Model\Attribute\AbstractAttribute
Definition:
AbstractAttribute.php:22
TYPO3\CMS\Form\Domain\Model\Attribute\TypeAttribute\getValue
getValue()
Definition:
TypeAttribute.php:49
TYPO3\CMS\Form\Domain\Model\Attribute
Definition:
AbstractAttribute.php:2
TYPO3\CMS\Form\Domain\Model\Attribute\TypeAttribute
Definition:
TypeAttribute.php:22
TYPO3\CMS\Form\Domain\Model\Attribute\TypeAttribute\$allowedValues
$allowedValues
Definition:
TypeAttribute.php:27
typo3
sysext
form
Classes
Domain
Model
Attribute
TypeAttribute.php
Generated on Wed Aug 7 2019 09:52:27 for TYPO3 CMS by
1.8.13