PHP Class FluidTYPO3\Vhs\ViewHelpers\Resource\AbstractImageViewHelper

Inheritance: extends FluidTYPO3\Vhs\ViewHelpers\Resource\AbstractResourceViewHelper
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
$tsfeBackup contains a backup of the current $GLOBALS['TSFE'] if used in BE mode
$workingDirectoryBackup string

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Initialize arguments.
public initializeArguments ( ) : void
Résultat void

injectConfigurationManager() public méthode

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

preprocessImages() public méthode

public preprocessImages ( array $files, boolean $onlyProperties = false ) : array | null
$files array
$onlyProperties boolean
Résultat array | null

preprocessSourceUri() public méthode

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

resetFrontendEnvironment() protected méthode

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

simulateFrontendEnvironment() protected méthode

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
Résultat void

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

$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
Résultat string