Review main Merged

63070[TASK] Make RteHtmlParser entrypoint API cleaner

Benni Mack CR +2 V +2 Hard +204 −162 updated 01/31/20, 17:01

Commit message

The RteHtmlParser has two public methods:
->init()
->RTE_transform()

init() was introduced in early PHP4 times when there was no constructor in PHP.
RTE_transform() contained a lot of parsing of properties, which is not needed
anymore since TYPO3 v8. init() itself is not needed anymore.

Since TYPO3 v8, RteHtmlParser is much cleaner towards the developer,
and the last step for this PHP class is to clearly separate the logic for the transformations in each direction, making two new entrypoints:
->transformTextForRichTextEditor($content, $configuration)
->transformTextForPersistence($content, $configuration)

This way, all logic is separated in these two methods, and the existing
RTE_transform() method is just a shell, which is not needed anymore.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 7