PHP Class FluidTYPO3\Vhs\ViewHelpers\Content\AbstractContentViewHelper

Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
Afficher le fichier Open project: fluidtypo3/vhs Class Usage Examples

Protected Properties

Свойство Type Description
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
$contentObject TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer

Méthodes publiques

Méthode Description
initializeArguments ( ) Initialize
injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void

Méthodes protégées

Méthode Description
getContentRecords ( ) : array Get content records based on column and pid
getPageUid ( ) : integer Gets the configured, or the current page UID if none is configured in arguments and no content_from_pid value exists in the current page record's attributes.
getRenderedRecords ( array $rows ) : array This function renders an array of tt_content record into an array of rendered content it returns a list of elements rendered by typoscript RECORD function
getSlideRecordsFromPage ( integer $pageUid, integer $limit ) : array[]
renderRecord ( array $row ) : string | null This function renders a raw tt_content record into the corresponding element by typoscript RENDER function. We keep track of already rendered records to avoid rendering the same record twice inside the same nested stack of content elements.

Method Details

getContentRecords() protected méthode

Get content records based on column and pid
protected getContentRecords ( ) : array
Résultat array

getPageUid() protected méthode

Gets the configured, or the current page UID if none is configured in arguments and no content_from_pid value exists in the current page record's attributes.
protected getPageUid ( ) : integer
Résultat integer

getRenderedRecords() protected méthode

This function renders an array of tt_content record into an array of rendered content it returns a list of elements rendered by typoscript RECORD function
protected getRenderedRecords ( array $rows ) : array
$rows array database rows of records (each item is a tt_content table record)
Résultat array

getSlideRecordsFromPage() protected méthode

protected getSlideRecordsFromPage ( integer $pageUid, integer $limit ) : array[]
$pageUid integer
$limit integer
Résultat array[]

initializeArguments() public méthode

Initialize
public initializeArguments ( )

injectConfigurationManager() public méthode

public injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
Résultat void

renderRecord() protected méthode

This function renders a raw tt_content record into the corresponding element by typoscript RENDER function. We keep track of already rendered records to avoid rendering the same record twice inside the same nested stack of content elements.
protected renderRecord ( array $row ) : string | null
$row array
Résultat string | null

Property Details

$configurationManager protected_oe property

protected ConfigurationManagerInterface,TYPO3\CMS\Extbase\Configuration $configurationManager
Résultat TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface

$contentObject protected_oe property

protected ContentObjectRenderer,TYPO3\CMS\Frontend\ContentObject $contentObject
Résultat TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer