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
파일 보기 프로젝트 열기: fluidtypo3/vhs 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

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