‪TYPO3CMS  10.4
SysLogButtonProvider.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
23 
30 {
34  private ‪$title;
35 
39  private ‪$target;
40 
41  public function ‪__construct(string ‪$title, string ‪$target = '')
42  {
43  $this->title = ‪$title;
44  $this->target = ‪$target;
45  }
46 
47  public function ‪getTitle(): string
48  {
49  return ‪$this->title;
50  }
51 
52  public function ‪getLink(): string
53  {
55  return 'javascript:top.goToModule('
56  . GeneralUtility::quoteJSvalue('system_BelogLog') . ', '
57  . GeneralUtility::quoteJSvalue('&' . http_build_query(['tx_belog_system_beloglog' => ['constraint' => ['action' => -1]]])) . ');';
58  }
59 
60  return '';
61  }
62 
63  public function ‪getTarget(): string
64  {
65  return ‪$this->target;
66  }
67 }
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getTarget
‪getTarget()
Definition: SysLogButtonProvider.php:61
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider
Definition: SysLogButtonProvider.php:30
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getLink
‪getLink()
Definition: SysLogButtonProvider.php:50
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getTitle
‪getTitle()
Definition: SysLogButtonProvider.php:45
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:43
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\$target
‪string $target
Definition: SysLogButtonProvider.php:37
‪TYPO3\CMS\Dashboard\Widgets\Provider
Definition: ButtonProvider.php:18
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\__construct
‪__construct(string $title, string $target='')
Definition: SysLogButtonProvider.php:39
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface
Definition: ButtonProviderInterface.php:24
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded
‪static bool isLoaded($key)
Definition: ExtensionManagementUtility.php:114
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\$title
‪string $title
Definition: SysLogButtonProvider.php:33