Issue Task Closed

#70903Refactor "getTreeList" functions / add utility function

Markus Zipfel 10/21/15, 10:53 updated 11/26/21, 01:53

Description

While searching for a way to get a comma-seperated PID list without using the old pi_getPidList function (defined in TYPO3\CMS\Frontend\Plugin\AbstractPlugin) I found three definitions of a function getTreeList in different classes:

  1. in TYPO3\CMS\Core\Database\QueryGenearator
  2. in TYPO3\CMS\Core\Database\QueryView
  3. in TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer

The first two getTreeList are almost equal (and have a “todo: Define visibility”). Each of these methods is public. Perhaps it would be useful to have a utility function doing this, inspired by the method defined in the ContentObjectRenderer because that one seems to use caching.

This is related to #33138: Provide getPidList function in ExtBase environment (includes propsed solution)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.