Skip to content

Commit

Permalink
[TASK] Refer to SimpleDataHandlerController instead of tce_db.php
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tmotyl authored and maddy2101 committed Jul 22, 2018
1 parent bee48c9 commit 6b836e6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
7 changes: 1 addition & 6 deletions typo3/sysext/backend/Classes/Clipboard/Clipboard.php
Expand Up @@ -949,13 +949,8 @@ public function isElements()
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
*
Expand Down
2 changes: 1 addition & 1 deletion typo3/sysext/backend/Configuration/Backend/Routes.php
Expand Up @@ -176,7 +176,7 @@

/**
* 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'
Expand Down
Expand Up @@ -13,7 +13,8 @@

/**
* 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',
Expand Down Expand Up @@ -238,7 +239,7 @@ define(['jquery',
};

/**
* AJAX call to tce_db.php
* AJAX call to record_process route (SimpleDataHandlerController->processAjaxRequest)
* returns a jQuery Promise to work with
*
* @param {Object} params
Expand Down
Expand Up @@ -35,18 +35,18 @@ class IssueCommandViewHelper extends AbstractViewHelper
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)
Expand Down
6 changes: 3 additions & 3 deletions typo3/sysext/core/Classes/DataHandling/DataHandler.php
Expand Up @@ -59,13 +59,13 @@
* 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
{
Expand Down Expand Up @@ -8762,7 +8762,7 @@ public function log($table, $recuid, $action, $recpid, $error, $details, $detail
if (!$this->enableLogging) {
return 0;
}
// Type value for tce_db.php
// Type value for DataHandler
$type = 1;
if (!$this->storeLogMessages) {
$details = '';
Expand Down

0 comments on commit 6b836e6

Please sign in to comment.