TYPO3CMS
9.5
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
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
FullyRenderedButton.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
32
class
FullyRenderedButton
implements
ButtonInterface
33
{
41
protected
$htmlSource
=
''
;
42
48
public
function
getHtmlSource
()
49
{
50
return
$this->htmlSource
;
51
}
52
60
public
function
setHtmlSource
(
$htmlSource
)
61
{
62
$this->htmlSource =
$htmlSource
;
63
return
$this;
64
}
65
71
public
function
getType
()
72
{
73
return
static::class;
74
}
75
81
public
function
isValid
()
82
{
83
if
(
84
trim($this->
getHtmlSource
()) !==
''
85
&& $this->
getType
() === self::class
86
) {
87
return
true
;
88
}
89
return
false
;
90
}
91
97
public
function
__toString
()
98
{
99
return
$this->
render
();
100
}
101
107
public
function
render
()
108
{
109
return
'<span class="btn btn-sm btn-default">'
. $this->
getHtmlSource
() .
'</span>'
;
110
}
111
}
TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton\setHtmlSource
FullyRenderedButton setHtmlSource($htmlSource)
Definition:
FullyRenderedButton.php:59
TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton\isValid
bool isValid()
Definition:
FullyRenderedButton.php:80
TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton\getHtmlSource
string getHtmlSource()
Definition:
FullyRenderedButton.php:47
TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton\$htmlSource
string $htmlSource
Definition:
FullyRenderedButton.php:40
TYPO3\CMS\Backend\Template\Components\Buttons
Definition:
AbstractButton.php:2
TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton\render
string render()
Definition:
FullyRenderedButton.php:106
TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton
Definition:
FullyRenderedButton.php:33
TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton\__toString
string __toString()
Definition:
FullyRenderedButton.php:96
TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton\getType
string getType()
Definition:
FullyRenderedButton.php:70
TYPO3\CMS\Backend\Template\Components\Buttons\ButtonInterface
Definition:
ButtonInterface.php:21
doxygen
typo3
sysext
backend
Classes
Template
Components
Buttons
FullyRenderedButton.php
Generated on Tue Oct 5 2021 01:56:56 for TYPO3CMS by
1.8.18