TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor:
TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface

Public Member Functions

 __construct ()
 
- Public Member Functions inherited from TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface
 process (ContentObjectRenderer $cObj, array $contentObjectConfiguration, array $processorConfiguration, array $processedData)
 

Protected Attributes

 $contentDataProcessor
 

Detailed Description

Fetch records from the database, using the default .select syntax from TypoScript.

This way, e.g. a FLUIDTEMPLATE cObject can iterate over the array of records.

Example TypoScript configuration:

10 = TYPO3 10 { table = tt_address pidInList = 123 where = company="Acme" AND first_name="Ralph" orderBy = RAND() as = addresses dataProcessing { 10 = TYPO3 10 { references.fieldName = image } } }

where "as" means the variable to be containing the result-set from the DB query.

Definition at line 46 of file DatabaseQueryProcessor.php.

Constructor & Destructor Documentation

◆ __construct()

Member Data Documentation

◆ $contentDataProcessor

TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor::$contentDataProcessor
protected

Definition at line 51 of file DatabaseQueryProcessor.php.