TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
backend
Classes
Template
Components
Buttons
AbstractButton.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Backend\Template\Components\Buttons;
3
4
/*
5
* This file is part of the TYPO3 CMS project.
6
*
7
* It is free software; you can redistribute it and/or modify it under
8
* the terms of the GNU General Public License, either version 2
9
* of the License, or any later version.
10
*
11
* For the full copyright and license information, please read the
12
* LICENSE.txt file that was distributed with this source code.
13
*
14
* The TYPO3 project - inspiring people to share!
15
*/
16
17
use
TYPO3\CMS\Backend\Template\Components\AbstractControl
;
18
use
TYPO3\CMS\Core\Imaging\Icon
;
19
23
class
AbstractButton
extends
AbstractControl
implements
ButtonInterface
24
{
30
protected
$icon
;
31
37
protected
$type
;
38
44
protected
$showLabelText
=
false
;
45
51
public
function
getShowLabelText
()
52
{
53
return
$this->showLabelText
;
54
}
55
63
public
function
setShowLabelText
(
$showLabelText
)
64
{
65
$this->showLabelText =
$showLabelText
;
66
return
$this;
67
}
68
74
public
function
getIcon
()
75
{
76
return
$this->icon
;
77
}
78
84
public
function
getType
()
85
{
86
return
get_class($this);
87
}
88
96
public
function
setIcon
(
Icon
$icon
)
97
{
98
$this->icon =
$icon
;
99
return
$this;
100
}
101
108
public
function
isValid
()
109
{
110
return
false
;
111
}
112
119
public
function
__toString
()
120
{
121
return
''
;
122
}
123
130
public
function
render
()
131
{
132
return
''
;
133
}
134
}
Generated on Wed Nov 11 2015 01:51:48 for TYPO3 by
1.8.3