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
RsauthStatus.php
Go to the documentation of this file.
1
<?php
2
declare(strict_types = 1);
3
4
namespace
TYPO3\CMS\Rsaauth\Report
;
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\Core\Localization\LanguageService
;
20
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
21
use
TYPO3\CMS\Reports\Status
as ReportStatus;
22
use
TYPO3\CMS\Reports\StatusProviderInterface
;
23
27
class
RsauthStatus
implements
StatusProviderInterface
28
{
29
35
public
function
getStatus
(): array
36
{
37
$statuses = [
38
'rsauth'
=> $this->
getRsaAuthStatus
(),
39
];
40
return
$statuses;
41
}
42
43
protected
function
getRsaAuthStatus
(): ReportStatus
44
{
45
if
(GeneralUtility::getIndpEnv(
'TYPO3_SSL'
)) {
46
$message = $this->
getLanguageService
()->
sL
(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang_report.xlf:report.sslActive'
);
47
}
else
{
48
$message = $this->
getLanguageService
()->
sL
(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang_report.xlf:report.sslInactive'
);
49
}
50
return
GeneralUtility::makeInstance(
51
ReportStatus::class,
52
$this->
getLanguageService
()->sL(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang_report.xlf:report.title'
),
53
$this->
getLanguageService
()->sL(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang_report.xlf:report.description'
),
54
$message,
55
ReportStatus::WARNING
56
);
57
}
58
62
protected
function
getLanguageService
():
LanguageService
63
{
64
return
$GLOBALS
[
'LANG'
];
65
}
66
}
TYPO3\CMS\Reports\StatusProviderInterface
Definition:
StatusProviderInterface.php:21
TYPO3\CMS\Core\Localization\LanguageService\sL
string sL($input)
Definition:
LanguageService.php:158
TYPO3\CMS\Reports\Status
Definition:
Status.php:22
TYPO3\CMS\Rsaauth\Report\RsauthStatus\getLanguageService
LanguageService getLanguageService()
Definition:
RsauthStatus.php:62
TYPO3\CMS\Rsaauth\Report\RsauthStatus\getStatus
array getStatus()
Definition:
RsauthStatus.php:35
$GLOBALS
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition:
ext_localconf.php:5
TYPO3\CMS\Rsaauth\Report\RsauthStatus
Definition:
RsauthStatus.php:28
TYPO3\CMS\Core\Localization\LanguageService
Definition:
LanguageService.php:29
TYPO3\CMS\Rsaauth\Report\RsauthStatus\getRsaAuthStatus
getRsaAuthStatus()
Definition:
RsauthStatus.php:43
TYPO3\CMS\Core\Utility\GeneralUtility
Definition:
GeneralUtility.php:45
TYPO3\CMS\Rsaauth\Report
Definition:
RsauthStatus.php:4
doxygen
typo3
sysext
rsaauth
Classes
Report
RsauthStatus.php
Generated on Tue Oct 5 2021 01:57:55 for TYPO3CMS by
1.8.18