PHP Class FluidTYPO3\Vhs\ViewHelpers\Resource\AbstractImageViewHelper

Inheritance: extends FluidTYPO3\Vhs\ViewHelpers\Resource\AbstractResourceViewHelper
Exibir arquivo Open project: fluidtypo3/vhs Class Usage Examples

Protected Properties

Property Type Description
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
$contentObject TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
$tsfeBackup contains a backup of the current $GLOBALS['TSFE'] if used in BE mode
$workingDirectoryBackup string

Public Methods

Method Description
initializeArguments ( ) : void Initialize arguments.
injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
preprocessImages ( array $files, boolean $onlyProperties = false ) : array | null
preprocessSourceUri ( string $source ) : string Turns a relative source URI into an absolute URL if required

Protected Methods

Method Description
resetFrontendEnvironment ( ) : void Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
simulateFrontendEnvironment ( ) : void Prepares $GLOBALS['TSFE'] for Backend mode This somewhat hacky work around is currently needed because the getImgResource() function of \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer relies on those variables to be set

Method Details

initializeArguments() public method

Initialize arguments.
public initializeArguments ( ) : void
return void

injectConfigurationManager() public method

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

preprocessImages() public method

public preprocessImages ( array $files, boolean $onlyProperties = false ) : array | null
$files array
$onlyProperties boolean
return array | null

preprocessSourceUri() public method

Turns a relative source URI into an absolute URL if required
public preprocessSourceUri ( string $source ) : string
$source string
return string

resetFrontendEnvironment() protected method

Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
See also: simulateFrontendEnvironment()
protected resetFrontendEnvironment ( ) : void
return void

simulateFrontendEnvironment() protected method

Prepares $GLOBALS['TSFE'] for Backend mode This somewhat hacky work around is currently needed because the getImgResource() function of \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer relies on those variables to be set
protected simulateFrontendEnvironment ( ) : void
return void

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

$tsfeBackup protected_oe property

contains a backup of the current $GLOBALS['TSFE'] if used in BE mode
protected $tsfeBackup

$workingDirectoryBackup protected_oe property

protected string $workingDirectoryBackup
return string