PHP Class FluidTYPO3\Vhs\ViewHelpers\Content\AbstractContentViewHelper

Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
Datei anzeigen Open project: fluidtypo3/vhs Class Usage Examples

Protected Properties

Property Type Description
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
$contentObject TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer

Public Methods

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

Protected Methods

Method 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 method

Get content records based on column and pid
protected getContentRecords ( ) : array
return array

getPageUid() protected method

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
return integer

getRenderedRecords() protected method

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)
return array

getSlideRecordsFromPage() protected method

protected getSlideRecordsFromPage ( integer $pageUid, integer $limit ) : array[]
$pageUid integer
$limit integer
return array[]

initializeArguments() public method

Initialize
public initializeArguments ( )

injectConfigurationManager() public method

public injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
return void

renderRecord() protected method

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
return string | null

Property Details

$configurationManager protected_oe property

protected ConfigurationManagerInterface,TYPO3\CMS\Extbase\Configuration $configurationManager
return TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface

$contentObject protected_oe property

protected ContentObjectRenderer,TYPO3\CMS\Frontend\ContentObject $contentObject
return TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer