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/57655
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
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
*
/**
* 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'
/**
* 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)
*/
define(['jquery',
'TYPO3/CMS/Backend/Modal',
};
/**
- * AJAX call to tce_db.php
+ * AJAX call to record_process route (SimpleDataHandlerController->processAjaxRequest)
* returns a jQuery Promise to work with
*
* @param {Object} params
public function initializeArguments()
{
parent::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)
* 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
{
if (!$this->enableLogging) {
return 0;
}
- // Type value for tce_db.php
+ // Type value for DataHandler
$type = 1;
if (!$this->storeLogMessages) {
$details = '';