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
TsDebugModule.php
Go to the documentation of this file.
1
<?php
2
declare(strict_types = 1);
3
4
namespace
TYPO3\CMS\Adminpanel\Modules
;
5
6
/*
7
* This file is part of the TYPO3 CMS project.
8
*
9
* It is free software; you can redistribute it and/or modify it under
10
* the terms of the GNU General Public License, either version 2
11
* of the License, or any later version.
12
*
13
* For the full copyright and license information, please read the
14
* LICENSE.txt file that was distributed with this source code.
15
*
16
* The TYPO3 project - inspiring people to share!
17
*/
18
19
use
TYPO3\CMS\Adminpanel\ModuleApi\AbstractModule
;
20
use
TYPO3\CMS\Adminpanel\ModuleApi\ShortInfoProviderInterface
;
21
use
TYPO3\CMS\Core\TimeTracker\TimeTracker
;
22
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
23
27
class
TsDebugModule
extends
AbstractModule
implements
ShortInfoProviderInterface
28
{
32
public
function
getIdentifier
(): string
33
{
34
return
'tsdebug'
;
35
}
36
40
public
function
getIconIdentifier
(): string
41
{
42
return
'mimetypes-x-content-template-static'
;
43
}
44
48
public
function
getLabel
(): string
49
{
50
return
$this->
getLanguageService
()->
sL
(
51
'LLL:EXT:adminpanel/Resources/Private/Language/locallang_tsdebug.xlf:module.label'
52
);
53
}
54
58
public
function
getShortInfo
(): string
59
{
60
$messageCount = 0;
61
foreach
($this->
getTimeTracker
()->tsStackLog as $log) {
62
$messageCount += count($log[
'message'
] ?? []);
63
}
64
return
sprintf(
65
$this->
getLanguageService
()->sL(
66
'LLL:EXT:adminpanel/Resources/Private/Language/locallang_tsdebug.xlf:module.shortinfo'
67
),
68
$messageCount
69
);
70
}
71
75
protected
function
getTimeTracker
():
TimeTracker
76
{
77
return
GeneralUtility::makeInstance(TimeTracker::class);
78
}
79
}
TYPO3\CMS\Adminpanel\Modules\TsDebugModule\getIconIdentifier
getIconIdentifier()
Definition:
TsDebugModule.php:40
TYPO3\CMS\Adminpanel\ModuleApi\AbstractModule
Definition:
AbstractModule.php:30
TYPO3\CMS\Core\Localization\LanguageService\sL
string sL($input)
Definition:
LanguageService.php:158
TYPO3\CMS\Adminpanel\Modules\TsDebugModule
Definition:
TsDebugModule.php:28
TYPO3\CMS\Adminpanel\ModuleApi\ShortInfoProviderInterface
Definition:
ShortInfoProviderInterface.php:29
TYPO3\CMS\Adminpanel\Modules\TsDebugModule\getTimeTracker
TimeTracker getTimeTracker()
Definition:
TsDebugModule.php:75
TYPO3\CMS\Adminpanel\Modules\TsDebugModule\getShortInfo
getShortInfo()
Definition:
TsDebugModule.php:58
TYPO3\CMS\Adminpanel\Modules
Definition:
CacheModule.php:4
TYPO3\CMS\Adminpanel\ModuleApi\AbstractModule\getLanguageService
LanguageService getLanguageService()
Definition:
AbstractModule.php:120
TYPO3\CMS\Adminpanel\Modules\TsDebugModule\getLabel
getLabel()
Definition:
TsDebugModule.php:48
TYPO3\CMS\Core\Utility\GeneralUtility
Definition:
GeneralUtility.php:45
TYPO3\CMS\Core\TimeTracker\TimeTracker
Definition:
TimeTracker.php:27
TYPO3\CMS\Adminpanel\Modules\TsDebugModule\getIdentifier
getIdentifier()
Definition:
TsDebugModule.php:32
doxygen
typo3
sysext
adminpanel
Classes
Modules
TsDebugModule.php
Generated on Tue Oct 5 2021 01:56:48 for TYPO3CMS by
1.8.18