PHP Класс FluidTYPO3\Vhs\ViewHelpers\Asset\AbstractAssetViewHelper

Note: building of all Assets takes place in the class FluidTYPO3\Vhs\Service\AssetService with two reasons: - A "buildAll" method should never be possible to call from any Asset ViewHelper; it should only be possible from a single class. - The method but must be public and non-static and thus cannot be hidden from access by subclasses if placed in this class.
Наследование: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper, implements FluidTYPO3\Vhs\ViewHelpers\Asset\AssetInterface, use trait FluidTYPO3\Vhs\Traits\ArrayConsumingViewHelperTrait
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$assetService FluidTYPO3\Vhs\Service\AssetService
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
$content string
$localSettings array
$objectManager TYPO3\CMS\Extbase\Object\ObjectManagerInterface
$tagBuilder TYPO3\CMS\Fluid\Core\ViewHelper\TagBuilder
$type string If a LESS stylesheet is being compiled the "type" would be "css" because this will group the compiled LESS stylesheet with other CSS - allowing it to be merged with other CSS.

Открытые методы

Метод Описание
__toString ( ) : string
assertAddNameCommentWithChunk ( ) : boolean Returns TRUE if settings specify that the name of each Asset should be placed above the built content when placed in merged Asset cache files.
assertAllowedInFooter ( ) : boolean
assertDebugEnabled ( ) : boolean Returns TRUE if the current Asset should be debugged as commanded by settings in TypoScript an/ord ViewHelper attributes.
assertFluidEnabled ( ) : boolean Returns TRUE of settings specify that the source of this Asset should be rendered as if it were a Fluid template, using variables from the "arguments" attribute
assertHasBeenRemoved ( ) : boolean
build ( ) : mixed Build this asset. Override this method in the specific implementation of an Asset in order to:
getAssetSettings ( ) : array
getDebugInformation ( ) : array Allows public access to debug this particular Asset instance later, when including the Asset in the page.
getDependencies ( ) : array
getGroup ( ) : string
getName ( ) : string
getSettings ( ) : array Returns the settings used by this particular Asset during inclusion. Public access allows later inspection of the TypoScript values which were applied to the Asset.
getType ( ) : string
getVariables ( ) : array
initializeArguments ( ) : void
injectAssetService ( AssetService $assetService ) : void
injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
injectObjectManager ( TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager ) : void
render ( ) : void Render method
setSettings ( array | ArrayAccess $settings )

Защищенные методы

Метод Описание
debug ( ) : mixed
finalize ( ) : void Saves this Asset or perhaps discards it if overriding is disabled and an identically named Asset already exists.
getContent ( ) : string
getOverwrite ( ) : boolean
getTagWithContent ( ) : string

Описание методов

__toString() публичный Метод

public __toString ( ) : string
Результат string

assertAddNameCommentWithChunk() публичный Метод

Returns TRUE if settings specify that the name of each Asset should be placed above the built content when placed in merged Asset cache files.
public assertAddNameCommentWithChunk ( ) : boolean
Результат boolean

assertAllowedInFooter() публичный Метод

public assertAllowedInFooter ( ) : boolean
Результат boolean

assertDebugEnabled() публичный Метод

Returns TRUE if the current Asset should be debugged as commanded by settings in TypoScript an/ord ViewHelper attributes.
public assertDebugEnabled ( ) : boolean
Результат boolean

assertFluidEnabled() публичный Метод

Returns TRUE of settings specify that the source of this Asset should be rendered as if it were a Fluid template, using variables from the "arguments" attribute
public assertFluidEnabled ( ) : boolean
Результат boolean

assertHasBeenRemoved() публичный Метод

public assertHasBeenRemoved ( ) : boolean
Результат boolean

build() публичный Метод

- if necessary compile the Asset (LESS, SASS, CoffeeScript etc) - make a final rendering decision based on arguments Note that within this function the ViewHelper and TemplateVariable Containers are not dependable, you cannot use the ControllerContext and RenderingContext and you should therefore also never call renderChildren from within this function. Anything else goes; CLI commands to build, caching implementations - you name it.
public build ( ) : mixed
Результат mixed

debug() защищенный Метод

protected debug ( ) : mixed
Результат mixed

finalize() защищенный Метод

Performed from every Asset's render() for it to work.
protected finalize ( ) : void
Результат void

getAssetSettings() публичный Метод

public getAssetSettings ( ) : array
Результат array

getContent() защищенный Метод

protected getContent ( ) : string
Результат string

getDebugInformation() публичный Метод

Allows public access to debug this particular Asset instance later, when including the Asset in the page.
public getDebugInformation ( ) : array
Результат array

getDependencies() публичный Метод

public getDependencies ( ) : array
Результат array

getGroup() публичный Метод

public getGroup ( ) : string
Результат string

getName() публичный Метод

public getName ( ) : string
Результат string

getOverwrite() защищенный Метод

protected getOverwrite ( ) : boolean
Результат boolean

getSettings() публичный Метод

Returns the settings used by this particular Asset during inclusion. Public access allows later inspection of the TypoScript values which were applied to the Asset.
public getSettings ( ) : array
Результат array

getTagWithContent() защищенный Метод

protected getTagWithContent ( ) : string
Результат string

getType() публичный Метод

public getType ( ) : string
Результат string

getVariables() публичный Метод

public getVariables ( ) : array
Результат array

initializeArguments() публичный Метод

public initializeArguments ( ) : void
Результат void

injectAssetService() публичный Метод

public injectAssetService ( AssetService $assetService ) : void
$assetService FluidTYPO3\Vhs\Service\AssetService
Результат void

injectConfigurationManager() публичный Метод

public injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
Результат void

injectObjectManager() публичный Метод

public injectObjectManager ( TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager ) : void
$objectManager TYPO3\CMS\Extbase\Object\ObjectManagerInterface
Результат void

render() публичный Метод

Render method
public render ( ) : void
Результат void

setSettings() публичный Метод

public setSettings ( array | ArrayAccess $settings )
$settings array | ArrayAccess

Описание свойств

$assetService защищенное свойство

protected AssetService,FluidTYPO3\Vhs\Service $assetService
Результат FluidTYPO3\Vhs\Service\AssetService

$configurationManager защищенное свойство

protected ConfigurationManagerInterface,TYPO3\CMS\Extbase\Configuration $configurationManager
Результат TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface

$content защищенное свойство

protected string $content
Результат string

$localSettings защищенное свойство

protected array $localSettings
Результат array

$objectManager защищенное свойство

protected ObjectManagerInterface,TYPO3\CMS\Extbase\Object $objectManager
Результат TYPO3\CMS\Extbase\Object\ObjectManagerInterface

$tagBuilder защищенное свойство

protected TagBuilder,TYPO3\CMS\Fluid\Core\ViewHelper $tagBuilder
Результат TYPO3\CMS\Fluid\Core\ViewHelper\TagBuilder

$type защищенное свойство

If a LESS stylesheet is being compiled the "type" would be "css" because this will group the compiled LESS stylesheet with other CSS - allowing it to be merged with other CSS.
protected string $type
Результат string