PHP 클래스 Neos\FluidAdaptor\Core\Parser\Interceptor\ResourceInterceptor

That means you can build your template so that it can be previewed as is and pointers to CSS, JS, images, ... will still work when the resources are mirrored by Flow. Currently the supported URIs are of the form [../]Public/Some/ (will use current package) [../]/Resources/Public/ (will use given package)
상속: implements TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$defaultPackageKey string The default package key to use when rendering resource links without a package key in the source URL.

공개 메소드들

메소드 설명
getInterceptionPoints ( ) : array This interceptor wants to hook into text nodes.
process ( TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface $node, integer $interceptorPosition, TYPO3Fluid\Fluid\Core\Parser\ParsingState $parsingState ) : TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface Looks for URIs pointing to package resources and in place of those adds ViewHelperNode instances using the ResourceViewHelper.
setDefaultPackageKey ( string $defaultPackageKey ) : void Set the default package key to use for resource URIs.

메소드 상세

getInterceptionPoints() 공개 메소드

This interceptor wants to hook into text nodes.
public getInterceptionPoints ( ) : array
리턴 array Array of INTERCEPT_* constants

process() 공개 메소드

Looks for URIs pointing to package resources and in place of those adds ViewHelperNode instances using the ResourceViewHelper.
public process ( TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface $node, integer $interceptorPosition, TYPO3Fluid\Fluid\Core\Parser\ParsingState $parsingState ) : TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface
$node TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface
$interceptorPosition integer One of the INTERCEPT_* constants for the current interception point
$parsingState TYPO3Fluid\Fluid\Core\Parser\ParsingState the current parsing state. Not needed in this interceptor.
리턴 TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface the modified node

setDefaultPackageKey() 공개 메소드

Set the default package key to use for resource URIs.
public setDefaultPackageKey ( string $defaultPackageKey ) : void
$defaultPackageKey string
리턴 void

프로퍼티 상세

$defaultPackageKey 보호되어 있는 프로퍼티

The default package key to use when rendering resource links without a package key in the source URL.
protected string $defaultPackageKey
리턴 string