1 | <?php |
||
24 | class ExtensionTypoScriptSetup implements LoaderInterface |
||
25 | { |
||
26 | /** |
||
27 | * Get all the complex data for the loader. |
||
28 | * This return value will be cached and stored in the database |
||
29 | * There is no file monitoring for this cache. |
||
30 | */ |
||
31 | public function prepareLoader(Loader $loader, int $type): array |
||
40 | |||
41 | /** |
||
42 | * Run the loading process for the ext_tables.php file. |
||
43 | */ |
||
44 | public function loadExtensionTables(Loader $loader, array $loaderInformation): void |
||
48 | |||
49 | /** |
||
50 | * Run the loading process for the ext_localconf.php file. |
||
51 | */ |
||
52 | public function loadExtensionConfiguration(Loader $loader, array $loaderInformation): void |
||
56 | |||
57 | /** |
||
58 | * Add the given loader information as TypoScript. |
||
59 | */ |
||
60 | protected function addTypoScript(array $loaderInformation): void |
||
66 | |||
67 | /** |
||
68 | * Generate the TypoScript setup for the smart objects defined |
||
69 | * within the extension. |
||
70 | * |
||
71 | * @param string $extensionKey |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | private function generateTypoScriptSetup($extensionKey) |
||
100 | |||
101 | /** |
||
102 | * Check if the extension has smart objects. |
||
103 | * |
||
104 | * @param string $extensionKey |
||
105 | * |
||
106 | * @return bool |
||
107 | */ |
||
108 | private function extensionHasSmartObjects($extensionKey) |
||
116 | |||
117 | /** |
||
118 | * Get the smart objects for the given extension. |
||
119 | * |
||
120 | * @param $extensionKey |
||
121 | * |
||
122 | * @return mixed |
||
123 | */ |
||
124 | private function getSmartObjectsForExtensionKey($extensionKey) |
||
137 | } |
||
138 |