-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_tables.php
98 lines (72 loc) · 2.93 KB
/
ext_tables.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
// TYPOSCRIPT
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'lod', 'Configuration/TypoScript', 'Linked Open Data for TYPO3'
);
// TSCONFIG
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:lod/Configuration/TSConfig/setup.txt">
');
// PLUGINS
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Lod',
'Vocabulary',
'LOD: Vocabulary'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Lod',
'Api',
'LOD: Api'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Lod',
'Serializer',
'LOD: Serializer'
);
// FLEXFORMS
// TABLES
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_lod_domain_model_namespace');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_lod_domain_model_iri');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_lod_domain_model_bnode');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_lod_domain_model_literal');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_lod_domain_model_statement');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_lod_domain_model_term');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_lod_domain_model_vocabulary');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_lod_domain_model_representation');
// ICONS
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'tx_lod_actions_add_iri',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:lod/Resources/Public/Icons/tx_lod_actions_add_iri.svg']
);
$iconRegistry->registerIcon(
'tx_lod_actions_add_bnode',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:lod/Resources/Public/Icons/tx_lod_actions_add_bnode.svg']
);
$iconRegistry->registerIcon(
'tx_lod_actions_add_literal',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:lod/Resources/Public/Icons/tx_lod_actions_add_literal.svg']
);
$iconRegistry->registerIcon(
'tx_lod_domain_model_iri',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:lod/Resources/Public/Icons/tx_lod_domain_model_iri.svg']
);
$iconRegistry->registerIcon(
'tx_lod_type_entity',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:lod/Resources/Public/Icons/tx_lod_type_entity.svg']
);
$iconRegistry->registerIcon(
'tx_lod_type_property',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:lod/Resources/Public/Icons/tx_lod_type_property.svg']
);