Commit e20a8e5d authored by Tymoteusz Motylewski's avatar Tymoteusz Motylewski Committed by Jigal van Hemert
Browse files

[TASK] Refer to SimpleDataHandlerController instead of tce_db.php

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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarJörg Bösche <typo3@joergboesche.de>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Jigal van Hemert's avatarJigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert's avatarJigal van Hemert <jigal.van.hemert@typo3.org>
parent 5f711494
......@@ -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
*
......
......@@ -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'
......
......@@ -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
......
......@@ -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)
......
......@@ -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 = '';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment