[!!!][TASK] Remove deprecated code from TableController
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 9.5 / Deprecation-86207-ProtectedTstemplateExtension.rst
1 .. include:: ../../Includes.txt
2
3 ====================================================
4 Deprecation: #86207 - Protected tstemplate extension
5 ====================================================
6
7 See :issue:`86207`
8
9 Description
10 ===========
11
12 To allow refactoring of the Web -> Template module in TYPO3 v10, the involved controller classes
13 have been disentangled and better encapsulated:
14
15 * Class :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController`
16 does not extend :php:`TYPO3\CMS\Backend\Module\BaseScriptClass` anymore
17 * Class :php:`TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController`
18 does not extend :php:`TYPO3\CMS\Backend\Module\AbstractFunctionModule` anymore
19 * Class :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController`
20 does not extend :php:`TYPO3\CMS\Backend\Module\AbstractFunctionModule` anymore
21 * Class :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController`
22 does not extend :php:`TYPO3\CMS\Backend\Module\AbstractFunctionModule` anymore
23 * Class :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController`
24 does not extend :php:`TYPO3\CMS\Backend\Module\AbstractFunctionModule` anymore
25
26 Setting an instance of class :php:`TypoScriptTemplateModuleController` as global object :php:`$GLOBALS['SOBE']`
27 has been marked as deprecated and will be removed in TYPO3 v10.
28
29 The following class properties have been set from public to protected and will not be accessible in TYPO3 v10 anymore:
30
31 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->textExtensions`
32 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->pageinfo`
33 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->id`
34 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->modTSconfig`
35 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->content`
36 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->extObj`
37 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->access`
38 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->perms_clause`
39 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->extClassConf`
40 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->edit`
41 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->modMenu_type`
42 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->MCONF`
43 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->CMD`
44 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController->sObj`
45 * :php:`TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController->pObj`
46 * :php:`TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController->function_key`
47 * :php:`TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController->extClassConf`
48 * :php:`TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController->localLangFile`
49 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController->pObj`
50 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController->function_key`
51 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController->extClassConf`
52 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController->localLangFile`
53 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController->pObj`
54 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController->function_key`
55 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController->extClassConf`
56 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController->localLangFile`
57 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController->tce_processed`
58 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController->pObj`
59 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController->function_key`
60 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController->extClassConf`
61 * :php:`TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController->localLangFile`
62
63 The following class methods have been set from public to protected and will not be accessible in TYPO3 v10 anymore:
64
65 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->getExternalItemConfig()`
66 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->init()`
67 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->clearCache()`
68 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->main()`
69 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->setInPageArray()`
70 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->menuConfig()`
71 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->mergeExternalItems()`
72 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->handleExternalFunctionValue()`
73 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->checkExtObj()`
74 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->extObjContent()`
75 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->getExtObjContent()`
76 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->checkSubExtObj()`
77 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateModuleController->extObjHeader()`
78 * :php:`TYPO3CMSTstemplateControllerTemplateAnalyzerModuleFunctionControllerinitialize_editor()`
79 * :php:`TYPO3CMSTstemplateControllerTemplateAnalyzerModuleFunctionControllermodMenu()`
80 * :php:`TYPO3CMSTstemplateControllerTemplateAnalyzerModuleFunctionControllerhandleExternalFunctionValue()`
81 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateConstantEditorModuleFunctionControllerinitialize_editor()`
82 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateConstantEditorModuleFunctionControllerhandleExternalFunctionValue()`
83 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateInformationModuleFunctionControllerinitialize_editor()`
84 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateInformationModuleFunctionControllertableRowData()`
85 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateInformationModuleFunctionControllerhandleExternalFunctionValue()`
86 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateObjectBrowserModuleFunctionControllerinitialize_editor()`
87 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateObjectBrowserModuleFunctionControllermodMenu()`
88 * :php:`TYPO3CMSTstemplateControllerTypoScriptTemplateObjectBrowserModuleFunctionControllerhandleExternalFunctionValue()`
89
90
91 Impact
92 ======
93
94 If an extension accesses one of the above protected properties or calls one of the above protected methods,
95 a :php:`E_USER_DEPRECATED` error will be triggered.
96
97
98 Affected Installations
99 ======================
100
101 There are not many extensions that extend the `tstemplate` extension with own modules, it is relatively
102 unlikely that instances are affected by this.
103
104
105 Migration
106 =========
107
108 If extending the `tstemplate` module with an own extension, the extension should be adapted to not call
109 the above methods or properties any longer. Most usages can be easily adapted, for instance
110 to retrieve the current page id, use :php:`GeneralUtility::_GP('id')` instead of :php:`$this->pObj->id`.
111
112 .. index:: Backend, PHP-API, NotScanned, ext:tstemplate