‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\ContentObject\RecordsContentObject Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\ContentObject\RecordsContentObject:
TYPO3\CMS\Frontend\ContentObject\AbstractContentObject

Public Member Functions

 __construct (private readonly TimeTracker $timeTracker,)
 
string render ($conf=[])
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
 getContentObjectRenderer ()
 
 setRequest (ServerRequestInterface $request)
 
 setContentObjectRenderer (ContentObjectRenderer $cObj)
 

Protected Member Functions

 isRecordsPageAccessible (string $table, array $row, array $conf)
 
 collectRecordsFromSource ($source, array $tables)
 
 collectRecordsFromCategories ($selectedCategories, array $tables, $relationField)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
 hasTypoScriptFrontendController ()
 
 getTypoScriptFrontendController ()
 
 getPageRepository ()
 
 getPageRenderer ()
 

Protected Attributes

array $itemArray = array( )
 
array $data = array( )
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
PageRenderer $pageRenderer = null
 
ServerRequestInterface $request
 
ContentObjectRenderer $cObj = null
 

Detailed Description

Contains RECORDS class object.

Definition at line 27 of file RecordsContentObject.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::__construct ( private readonly TimeTracker  $timeTracker)

Definition at line 41 of file RecordsContentObject.php.

Member Function Documentation

◆ collectRecordsFromCategories()

TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::collectRecordsFromCategories (   $selectedCategories,
array  $tables,
  $relationField 
)
protected

Collects records for all selected tables and categories.

Parameters
string$selectedCategories‪Comma-separated list of categories
array$tables‪List of tables
string$relationField‪Name of the field containing the categories relation

Definition at line 192 of file RecordsContentObject.php.

References TYPO3\CMS\Webhooks\Message\$record, TYPO3\CMS\Core\Utility\GeneralUtility\intExplode(), and TYPO3\CMS\Frontend\Category\Collection\CategoryCollection\load().

Referenced by TYPO3\CMS\Frontend\ContentObject\RecordsContentObject\render().

◆ collectRecordsFromSource()

TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::collectRecordsFromSource (   $source,
array  $tables 
)
protected

Collects records according to the configured source

Parameters
string$source‪Source of records
array$tables‪List of tables

Definition at line 168 of file RecordsContentObject.php.

References $GLOBALS, and TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\getPageRepository().

Referenced by TYPO3\CMS\Frontend\ContentObject\RecordsContentObject\render().

◆ isRecordsPageAccessible()

TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::isRecordsPageAccessible ( string  $table,
array  $row,
array  $conf 
)
protected

◆ render()

Member Data Documentation

◆ $data

array TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::$data = array( )
protected

List of all selected records with full data, arranged per table

Definition at line 39 of file RecordsContentObject.php.

◆ $itemArray

array TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::$itemArray = array( )
protected

List of all items with table and uid information

Definition at line 33 of file RecordsContentObject.php.