PHP 클래스 Neos\Fusion\View\FusionView

Recursively loads all Fusion files from the configured path (By default that's Resources/Private/TypoScripts of the current package) and then checks whether a Fusion object for current controller and action can be found. If the controller class name is Foo\Bar\Baz\Controller\BlahController and the action is "index", it checks for the Fusion path Foo.Bar.Baz.BlahController.index. If this path is found, then it is used for rendering. Otherwise, the $fallbackView is used.
상속: extends Neos\Flow\Mvc\View\AbstractView
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fallbackView Neos\Flow\Mvc\View\ViewInterface
$fallbackViewEnabled boolean if FALSE, the fallback view will never be used.
$parsedTypoScript array The parsed TypoScript array in its internal representation
$supportedOptions array This contains the supported options, their default values, descriptions and types.
$typoScriptParser Neos\Fusion\Core\Parser
$typoScriptPath string Runtime cache of the TypoScript path which should be rendered; derived from the controller and action names or set by the user.
$typoScriptRuntime Neos\Fusion\Core\Runtime The TypoScript Runtime

공개 메소드들

메소드 설명
disableFallbackView ( ) : void Disable the use of the Fallback View
enableFallbackView ( ) : void Re-Enable the use of the Fallback View. By default, it is enabled, so calling this method only makes sense if disableFallbackView() has been called before.
initializeTypoScriptRuntime ( ) : void Load the TypoScript Files form the defined paths and construct a Runtime from the parsed results
render ( ) : string Render the view
renderFallbackView ( ) : string Initialize and render the fallback view
setOption ( string $optionName, mixed $value ) : void Reset runtime cache if an option is changed
setPackageKey ( string $packageKey ) : void The package key where the TypoScript should be loaded from. If not given, is automatically derived from the current request.
setTypoScriptPath ( string $typoScriptPath ) : void Sets the TypoScript path to be rendered to an explicit value; to be used mostly inside tests.
setTypoScriptPathPattern ( string $pathPattern ) : void
setTypoScriptPathPatterns ( array $pathPatterns ) : void

보호된 메소드들

메소드 설명
getPackageKey ( ) : string Get the package key to load the TypoScript from. If set, $this->getOption('packageKey') is used.
getTypoScriptPathForCurrentRequest ( ) : string Determines the TypoScript path depending on the current controller and action
isTypoScriptFoundForCurrentRequest ( ) : boolean Determine whether we are able to find TypoScript at the requested position
loadTypoScript ( ) : void Load TypoScript from the directories specified by $this->getOption('typoScriptPathPatterns')
renderTypoScript ( ) : string Render the given TypoScript and return the rendered page

메소드 상세

disableFallbackView() 공개 메소드

Disable the use of the Fallback View
public disableFallbackView ( ) : void
리턴 void

enableFallbackView() 공개 메소드

Re-Enable the use of the Fallback View. By default, it is enabled, so calling this method only makes sense if disableFallbackView() has been called before.
public enableFallbackView ( ) : void
리턴 void

getPackageKey() 보호된 메소드

Otherwise, the current request is taken and the controller package key is extracted from there.
protected getPackageKey ( ) : string
리턴 string the package key to load TypoScript from

getTypoScriptPathForCurrentRequest() 보호된 메소드

Determines the TypoScript path depending on the current controller and action

initializeTypoScriptRuntime() 공개 메소드

Load the TypoScript Files form the defined paths and construct a Runtime from the parsed results
public initializeTypoScriptRuntime ( ) : void
리턴 void

isTypoScriptFoundForCurrentRequest() 보호된 메소드

Determine whether we are able to find TypoScript at the requested position
protected isTypoScriptFoundForCurrentRequest ( ) : boolean
리턴 boolean TRUE if TypoScript exists at the current TypoScript path; FALSE otherwise

loadTypoScript() 보호된 메소드

Load TypoScript from the directories specified by $this->getOption('typoScriptPathPatterns')
protected loadTypoScript ( ) : void
리턴 void

render() 공개 메소드

Render the view
public render ( ) : string
리턴 string The rendered view

renderFallbackView() 공개 메소드

Initialize and render the fallback view
public renderFallbackView ( ) : string
리턴 string

renderTypoScript() 보호된 메소드

Render the given TypoScript and return the rendered page
protected renderTypoScript ( ) : string
리턴 string

setOption() 공개 메소드

Reset runtime cache if an option is changed
public setOption ( string $optionName, mixed $value ) : void
$optionName string
$value mixed
리턴 void

setPackageKey() 공개 메소드

The package key where the TypoScript should be loaded from. If not given, is automatically derived from the current request.
public setPackageKey ( string $packageKey ) : void
$packageKey string
리턴 void

setTypoScriptPath() 공개 메소드

Sets the TypoScript path to be rendered to an explicit value; to be used mostly inside tests.
public setTypoScriptPath ( string $typoScriptPath ) : void
$typoScriptPath string
리턴 void

setTypoScriptPathPattern() 공개 메소드

public setTypoScriptPathPattern ( string $pathPattern ) : void
$pathPattern string
리턴 void

setTypoScriptPathPatterns() 공개 메소드

public setTypoScriptPathPatterns ( array $pathPatterns ) : void
$pathPatterns array
리턴 void

프로퍼티 상세

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

protected ViewInterface,Neos\Flow\Mvc\View $fallbackView
리턴 Neos\Flow\Mvc\View\ViewInterface

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

if FALSE, the fallback view will never be used.
protected bool $fallbackViewEnabled
리턴 boolean

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

The parsed TypoScript array in its internal representation
protected array $parsedTypoScript
리턴 array

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

This contains the supported options, their default values, descriptions and types.
protected array $supportedOptions
리턴 array

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

protected Parser,Neos\Fusion\Core $typoScriptParser
리턴 Neos\Fusion\Core\Parser

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

Runtime cache of the TypoScript path which should be rendered; derived from the controller and action names or set by the user.
protected string $typoScriptPath
리턴 string

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

The TypoScript Runtime
protected Runtime,Neos\Fusion\Core $typoScriptRuntime
리턴 Neos\Fusion\Core\Runtime