|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* Copyright (C) 2018 |
|
5
|
|
|
* Nathan Boiron <[email protected]> |
|
6
|
|
|
* Romain Canon <[email protected]> |
|
7
|
|
|
* |
|
8
|
|
|
* This file is part of the TYPO3 NotiZ project. |
|
9
|
|
|
* It is free software; you can redistribute it and/or modify it |
|
10
|
|
|
* under the terms of the GNU General Public License, either |
|
11
|
|
|
* version 3 of the License, or any later version. |
|
12
|
|
|
* |
|
13
|
|
|
* For the full copyright and license information, see: |
|
14
|
|
|
* http://www.gnu.org/licenses/gpl-3.0.html |
|
15
|
|
|
*/ |
|
16
|
|
|
|
|
17
|
|
|
namespace CuyZ\Notiz\Controller\Backend\Administration; |
|
18
|
|
|
|
|
19
|
|
|
use CuyZ\Notiz\Controller\Backend\BackendController; |
|
20
|
|
|
use CuyZ\Notiz\Controller\Backend\Menu; |
|
21
|
|
|
use CuyZ\Notiz\Core\Support\Url; |
|
22
|
|
|
use TYPO3\CMS\Core\Utility\GeneralUtility; |
|
23
|
|
|
|
|
24
|
|
|
class IndexController extends BackendController |
|
25
|
|
|
{ |
|
26
|
|
|
/** |
|
27
|
|
|
* Shows various information and links about the extension. |
|
28
|
|
|
*/ |
|
29
|
|
|
public function processAction() |
|
30
|
|
|
{ |
|
31
|
|
|
$this->view->assign('extensionConfigurationUri', $this->getExtensionConfigurationUri()); |
|
32
|
|
|
$this->view->assign('docUrl', Url::documentation()); |
|
33
|
|
|
$this->view->assign('docAddDefinitionUrl', Url::documentationTypoScriptDefinition()); |
|
34
|
|
|
$this->view->assign('repositoryUrl', Url::repository()); |
|
35
|
|
|
$this->view->assign('newIssueUrl', Url::newIssue()); |
|
36
|
|
|
$this->view->assign('slackChannelUrl', Url::slackChannel()); |
|
37
|
|
|
} |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @inheritdoc |
|
41
|
|
|
*/ |
|
42
|
|
|
protected function getMenu() |
|
43
|
|
|
{ |
|
44
|
|
|
return Menu::ADMINISTRATION_INDEX; |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* URI to the extension configuration manager (can be accessed within the |
|
49
|
|
|
* extension manager). |
|
50
|
|
|
* |
|
51
|
|
|
* @return string |
|
52
|
|
|
*/ |
|
53
|
|
|
protected function getExtensionConfigurationUri() |
|
54
|
|
|
{ |
|
55
|
|
|
return $this->uriBuilder |
|
56
|
|
|
->reset() |
|
57
|
|
|
->setArguments(['M' => 'tools_ExtensionmanagerExtensionmanager']) |
|
58
|
|
|
->uriFor( |
|
59
|
|
|
'showConfigurationForm', |
|
60
|
|
|
[ |
|
61
|
|
|
'extension' => [ |
|
62
|
|
|
'key' => 'notiz' |
|
63
|
|
|
], |
|
64
|
|
|
'returnUrl' => GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL'), |
|
65
|
|
|
], |
|
66
|
|
|
'Configuration', |
|
67
|
|
|
'extensionmanager', |
|
68
|
|
|
'tools_ExtensionmanagerExtensionmanager' |
|
69
|
|
|
); |
|
70
|
|
|
} |
|
71
|
|
|
} |
|
72
|
|
|
|