Project

General

Profile

Actions

Task #89303

closed

Make list of changes ($historyRecords) accessable

Added by Christoph Lehmann over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Start date:
2019-09-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The Datahandler has a variable named $historyRecords which is primarly used to create a history entry in the database. Its structure is like

Array
(
    [pages:109203] => Array
        (
            [oldRecord] => Array
                (
                    [categories] => 
                )

            [newRecord] => Array
                (
                    [categories] => 794
                )

        )
)

The variable is also useful in hooks like processDatamap_afterDatabaseOperations to get an easy view of what really changed.

Currently you have to

- use an early hook (preProcess) to get the actual record and store it in a cache
- use a late hook (afterDatabase) to the new record
- maybe more sql queries because of mm changes
- compare them

I would like to make $historyRecords public accessable to handle changes more easily.

Actions

Also available in: Atom PDF