-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathext_localconf.php
74 lines (61 loc) · 4.72 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
68
69
70
71
72
73
74
<?php
if (!(defined('TYPO3') || defined('TYPO3_MODE'))) {
exit('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league']['clearStatistics_hook'][] = 'System25\T3sports\Hooks\ClearStats->clearStats4Comp';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league']['mergeProfiles_hook'][] = 'System25\T3sports\Hooks\MergeProfiles->mergeProfile';
// Hook for match search
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league']['search_Match_getTableMapping_hook'][] = 'System25\T3sports\Hooks\Search->getTableMappingMatch';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league']['search_Match_getJoins_hook'][] = 'System25\T3sports\Hooks\Search->getJoinsMatch';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league_fe']['search_Match_getTableMapping_hook'][] = 'System25\T3sports\Hooks\Search->getTableMappingMatch';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league_fe']['search_Match_getJoins_hook'][] = 'System25\T3sports\Hooks\Search->getJoinsMatch';
// Hook for profile marker
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league_fe']['profileMarker_afterSubst'][] = 'System25\T3sports\Hooks\Marker->parseProfile';
// Hook for match filter
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league_fe']['filterMatch_setfields'][] = 'System25\T3sports\Hooks\Filter->handleMatchFilter';
if (!\Sys25\RnBase\Utility\TYPO3::isTYPO104OrHigher()) {
$provider = \System25\T3sports\Service\StatsIndexerProvider::getInstance();
$provider->addStatsIndexer(new \System25\T3sports\StatsIndexer\CoachStats());
$provider->addStatsIndexer(new \System25\T3sports\StatsIndexer\PlayerStats());
$provider->addStatsIndexer(new \System25\T3sports\StatsIndexer\PlayerGoalStats());
$provider->addStatsIndexer(new \System25\T3sports\StatsIndexer\PlayerTimeStats());
$provider->addStatsIndexer(new \System25\T3sports\StatsIndexer\RefereeStats());
}
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('goals', '10,11,12,13');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('assists', '31');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('goalshead', '11');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('goalspenalty', '12');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('goalsown', '30');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('cardyellow', '70');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('cardyr', '71');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('cardred', '72');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('changeout', '80');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('changein', '81');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsSimple('captain', '200');
// Tore kommen über das Spielergebnis
//System25\T3sports\Utility\StatsConfig::registerCoachStatsSimple('goals', '10,11,12,13');
System25\T3sports\Utility\StatsConfig::registerCoachStatsSimple('cardyellow', '70');
System25\T3sports\Utility\StatsConfig::registerCoachStatsSimple('cardyr', '71');
System25\T3sports\Utility\StatsConfig::registerCoachStatsSimple('cardred', '72');
System25\T3sports\Utility\StatsConfig::registerCoachStatsSimple('changeout', '80');
System25\T3sports\Utility\StatsConfig::registerRefereeStatsSimple('goalspenalty', '12');
System25\T3sports\Utility\StatsConfig::registerRefereeStatsSimple('penalty', '12,32');
System25\T3sports\Utility\StatsConfig::registerRefereeStatsSimple('cardyellow', '70');
System25\T3sports\Utility\StatsConfig::registerRefereeStatsSimple('cardyr', '71');
System25\T3sports\Utility\StatsConfig::registerRefereeStatsSimple('cardred', '72');
// Register reports for plugin
System25\T3sports\Utility\StatsConfig::registerPlayerStatsReport('default');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsReport('scorerlist');
System25\T3sports\Utility\StatsConfig::registerPlayerStatsReport('assistlist');
System25\T3sports\Utility\StatsConfig::registerCoachStatsReport('default');
System25\T3sports\Utility\StatsConfig::registerRefereeStatsReport('default');
// Register a new matchnote type
System25\T3sports\Utility\Misc::registerMatchNote('LLL:EXT:t3sportstats/Resources/Private/Language/locallang_db:tx_cfcleague_match_notes.type.goalfreekick', '13');
if (\Sys25\RnBase\Utility\Environment::isBackend()) {
// Einbindung einer PageTSConfig
// since T3 12 pagets is loaded by convention
if (!\Sys25\RnBase\Utility\TYPO3::isTYPO121OrHigher()) {
\Sys25\RnBase\Utility\Extensions::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3sportstats/Configuration/PageTS/modWizards.tsconfig">');
\Sys25\RnBase\Utility\Extensions::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3sportstats/Configuration/PageTS/moduleConfig.tsconfig">');
}
}