forked from subugoe/typo3-schulungen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
executable file
·67 lines (59 loc) · 1.75 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Schulungen',
array(
'Schulung' => 'list, listSlim, listTermineUndTeilnehmer, show, new, create, edit, update, delete, export',
'Termin' => 'list, show, new, create, edit, update, delete',
'Teilnehmer' => 'list, show, new, create, edit, update, delete, deregister',
'Benachrichtigung' => 'sendeBenachrichtigung'
),
// notCacheAbleActions
array(
'Schulung' => 'show',
'Teilnehmer' => 'new, create, list, deregister'
)
);
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'SchulungenSideMenu',
array(
'Schulung' => 'listSlim',
)
);
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Scheduler',
array(
'Benachrichtigung' => 'sendeBenachrichtigung',
'Termin' => 'update'
)
);
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Calendar',
array(
'Termin' => 'export'
)
);
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Csvexport',
array(
'Schulung' => 'export'
)
);
// Scheduler fuer die Erinnerungen konfigurieren
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_Schulungen_Service_SendRemindersTask'] = array(
'extension' => $_EXTKEY,
'title' => 'Erinnerungen versenden',
'description' => 'Vor einer Schulung Erinnerungen verschicken'
);
/* not correctly working solution for cli_mode (scheduler) */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'Tx_Schulungen_Command_ReminderCommandController';
// Set up Hooks
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['nkwsubmenu']['extendMoreOnThesePages'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Controller/SchulungController.php:Tx_Schulungen_Controller_SchulungController->listSlimAction';
?>