‪TYPO3CMS  9.5
RsauthStatus.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
3 
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 
21 use ‪TYPO3\CMS\Reports\Status as ReportStatus;
23 
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 
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