‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher Class Reference

Public Member Functions

 __construct (PageLayoutContext $pageLayoutContext)
 
array getContentRecordsPerColumn (?int $columnNumber=null, ?int $languageId=null)
 
 getFlatContentRecords (int $languageId)
 
 getUnusedRecords ()
 
 getTranslationData (iterable $contentElements, int $language)
 
 getBackendUser ()
 

Protected Member Functions

 getQueryBuilder ()
 
 getResult ($result)
 
 getLanguageService ()
 
 getRuntimeCache ()
 

Protected Attributes

PageLayoutContext $context
 
array $fetchedContentRecords = []
 
EventDispatcherInterface $eventDispatcher
 

Detailed Description

Class responsible for fetching the content data related to a BackendLayout

  • ‪Reads content records
  • ‪Performs workspace overlay on records
  • ‪Capable of returning all records in active language as flat array
  • ‪Capable of returning records for a given column in a given (optional) language
  • ‪Capable of returning translation data (brief info about translation consistency)

this is experimental and subject to change in TYPO3 v10 / v11

Definition at line 52 of file ContentFetcher.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::__construct ( PageLayoutContext  $pageLayoutContext)

Member Function Documentation

◆ getBackendUser()

TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::getBackendUser ( )

◆ getContentRecordsPerColumn()

array TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::getContentRecordsPerColumn ( ?int  $columnNumber = null,
?int  $languageId = null 
)

◆ getFlatContentRecords()

TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::getFlatContentRecords ( int  $languageId)

◆ getLanguageService()

TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::getLanguageService ( )
protected

◆ getQueryBuilder()

◆ getResult()

TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::getResult (   $result)
protected

◆ getRuntimeCache()

◆ getTranslationData()

◆ getUnusedRecords()

TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::getUnusedRecords ( )

Allows to decide via an Event whether a custom type has children which were rendered or should not be rendered.

Definition at line 118 of file ContentFetcher.php.

References TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher\getContentRecordsPerColumn().

Member Data Documentation

◆ $context

PageLayoutContext TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::$context
protected

Definition at line 54 of file ContentFetcher.php.

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::$eventDispatcher
protected

Definition at line 58 of file ContentFetcher.php.

◆ $fetchedContentRecords

array TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher::$fetchedContentRecords = []
protected

Definition at line 56 of file ContentFetcher.php.