From e20a8e5dd33bbe020aef7bc7c36d470cd6b42017 Mon Sep 17 00:00:00 2001 From: Tymoteusz Motylewski <t.motylewski@gmail.com> Date: Thu, 19 Jul 2018 23:07:00 +0200 Subject: [PATCH] [TASK] Refer to SimpleDataHandlerController instead of tce_db.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update comments in the code not to mention tce_db.php. The tce_db.php entry point is gone since v8. The SimpleDataHandlerController is responsible for pushing data from request to DataHandler. Resolves: #85600 Releases: master, 8.7 Change-Id: I6d323a9aab77ab67ff811970ff3c0f47dbf84340 Reviewed-on: https://review.typo3.org/57636 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Jörg Bösche <typo3@joergboesche.de> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org> Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org> --- typo3/sysext/backend/Classes/Clipboard/Clipboard.php | 7 +------ typo3/sysext/backend/Configuration/Backend/Routes.php | 2 +- .../Resources/Private/TypeScript/AjaxDataHandler.ts | 5 +++-- .../beuser/Classes/ViewHelpers/IssueCommandViewHelper.php | 6 +++--- typo3/sysext/core/Classes/DataHandling/DataHandler.php | 6 +++--- 5 files changed, 11 insertions(+), 15 deletions(-) diff --git a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php index 5d83e015c529..dbe48ef0fb0b 100644 --- a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php +++ b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php @@ -924,13 +924,8 @@ class Clipboard return is_array($this->clipData[$this->current]['el']) && !empty($this->clipData[$this->current]['el']); } - /***************************************** - * - * FOR USE IN tce_db.php: - * - ****************************************/ /** - * Applies the proper paste configuration in the $cmd array send to tce_db.php. + * Applies the proper paste configuration in the $cmd array send to SimpleDataHandlerController (tce_db route) * $ref is the target, see description below. * The current pad is pasted * diff --git a/typo3/sysext/backend/Configuration/Backend/Routes.php b/typo3/sysext/backend/Configuration/Backend/Routes.php index c75b7d8e5132..2dd6c3a55256 100644 --- a/typo3/sysext/backend/Configuration/Backend/Routes.php +++ b/typo3/sysext/backend/Configuration/Backend/Routes.php @@ -189,7 +189,7 @@ return [ /** * Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms. - * This script serves as the fileadministration part of the TYPO3 Core Engine. + * This script serves as the file administration part of the TYPO3 Core Engine. * Basically it includes two libraries which are used to manipulate files on the server. * * For syntax and API information, see the document 'TYPO3 Core APIs' diff --git a/typo3/sysext/backend/Resources/Private/TypeScript/AjaxDataHandler.ts b/typo3/sysext/backend/Resources/Private/TypeScript/AjaxDataHandler.ts index 1dc40dd51705..d33cec7c424d 100644 --- a/typo3/sysext/backend/Resources/Private/TypeScript/AjaxDataHandler.ts +++ b/typo3/sysext/backend/Resources/Private/TypeScript/AjaxDataHandler.ts @@ -28,7 +28,8 @@ enum Identifiers { /** * Module: TYPO3/CMS/Backend/AjaxDataHandler - * AjaxDataHandler - Javascript functions to work with AJAX and interacting with tce_db.php + * Javascript functions to work with AJAX and interacting with Datahandler + * through \TYPO3\CMS\Backend\Controller\SimpleDataHandlerController->processAjaxRequest (record_process route) */ class AjaxDataHandler { /** @@ -234,7 +235,7 @@ class AjaxDataHandler { } /** - * AJAX call to tce_db.php + * AJAX call to record_process route (SimpleDataHandlerController->processAjaxRequest) * returns a jQuery Promise to work with * * @param {Object} params diff --git a/typo3/sysext/beuser/Classes/ViewHelpers/IssueCommandViewHelper.php b/typo3/sysext/beuser/Classes/ViewHelpers/IssueCommandViewHelper.php index 31cf3ebabe07..c67791147074 100644 --- a/typo3/sysext/beuser/Classes/ViewHelpers/IssueCommandViewHelper.php +++ b/typo3/sysext/beuser/Classes/ViewHelpers/IssueCommandViewHelper.php @@ -32,18 +32,18 @@ class IssueCommandViewHelper extends AbstractViewHelper */ public function initializeArguments() { - $this->registerArgument('parameters', 'string', 'Is a set of GET params to send to tce_db.php. Example: "&cmd[tt_content][123][move]=456" or "&data[tt_content][123][hidden]=1&data[tt_content][123][title]=Hello%20World', true); + $this->registerArgument('parameters', 'string', 'Is a set of GET params to send to route tce_db (SimpleDataHandlerController). Example: "&cmd[tt_content][123][move]=456" or "&data[tt_content][123][hidden]=1&data[tt_content][123][title]=Hello%20World', true); $this->registerArgument('redirectUrl', 'string', 'Redirect URL if any other that \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv(\'REQUEST_URI\') is preferred', false, ''); } /** - * Returns a URL with a command to TYPO3 Core Engine (tce_db.php) + * Returns a URL with a command to TYPO3 Core Engine - DataHandler (route tce_db) * * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * - * @return string URL to tce_db.php + parameters + * @return string URL to tce_db + parameters * @see \TYPO3\CMS\Backend\Utility\BackendUtility::getLinkToDataHandlerAction() */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php index 93d8ae688663..11537a2da0e0 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -66,13 +66,13 @@ use TYPO3\CMS\Core\Versioning\VersionState; * This class was formerly known as TCEmain. * * This is the TYPO3 Core Engine class for manipulation of the database - * This class is used by eg. the tce_db.php script which provides an the interface for POST forms to this class. + * This class is used by eg. the tce_db BE route (SimpleDataHandlerController) which provides an the interface for POST forms to this class. * * Dependencies: * - $GLOBALS['TCA'] must exist * - $GLOBALS['LANG'] must exist * - * tce_db.php for further comments and SYNTAX! Also see document 'TYPO3 Core API' for details. + * Also see document 'TYPO3 Core API' for details. */ class DataHandler implements LoggerAwareInterface { @@ -8699,7 +8699,7 @@ class DataHandler implements LoggerAwareInterface if (!$this->enableLogging) { return 0; } - // Type value for tce_db.php + // Type value for DataHandler $type = 1; if (!$this->storeLogMessages) { $details = ''; -- GitLab