PHP 클래스 Neos\FluidAdaptor\View\AbstractTemplateView

상속: extends TYPO3Fluid\Fluid\View\AbstractTemplateView, implements Neos\Flow\Mvc\View\ViewInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$controllerContext Neos\Flow\Mvc\Controller\ControllerContext
$options array The configuration options of this view
$supportedOptions array Syntax example: [ 'someOptionName' => ['defaultValue', 'some description', 'string'), 'someOtherOptionName' => ['defaultValue', some description', integer), ... )

공개 메소드들

메소드 설명
__construct ( array $options = null ) Set default options based on the supportedOptions provided
canRender ( ControllerContext $controllerContext ) : boolean
createWithOptions ( array $options ) : AbstractTemplateView Factory method to create an instance with given options.
getOption ( string $optionName ) : mixed Get a specific option of this View
renderSection ( string $sectionName, array $variables = [], boolean $ignoreUnknown = false ) : string Renders a given section.
setControllerContext ( ControllerContext $controllerContext )
setOption ( string $optionName, mixed $value ) : void Set a specific option of this View
setTemplatePathAndFilename ( string $templatePathAndFilename )

보호된 메소드들

메소드 설명
renderStandaloneSection ( string $sectionName, array $variables = [], boolean $ignoreUnknown = false ) : string Renders a section on its own, i.e. without the a surrounding template.
setOptions ( array $options ) Merges the given options with the default values and sets the resulting options in this object.
validateOptions ( array $options ) Validate options given to this view.

메소드 상세

__construct() 공개 메소드

Set default options based on the supportedOptions provided
public __construct ( array $options = null )
$options array

canRender() 공개 메소드

public canRender ( ControllerContext $controllerContext ) : boolean
$controllerContext Neos\Flow\Mvc\Controller\ControllerContext
리턴 boolean

createWithOptions() 공개 정적인 메소드

Factory method to create an instance with given options.
public static createWithOptions ( array $options ) : AbstractTemplateView
$options array
리턴 AbstractTemplateView

getOption() 공개 메소드

Get a specific option of this View
public getOption ( string $optionName ) : mixed
$optionName string
리턴 mixed

renderSection() 공개 메소드

Renders a given section.
public renderSection ( string $sectionName, array $variables = [], boolean $ignoreUnknown = false ) : string
$sectionName string Name of section to render
$variables array The variables to use
$ignoreUnknown boolean Ignore an unknown section and just return an empty string
리턴 string rendered template for the section

renderStandaloneSection() 보호된 메소드

In this case, we just emulate that a surrounding (empty) layout exists, and trigger the normal rendering flow then.
protected renderStandaloneSection ( string $sectionName, array $variables = [], boolean $ignoreUnknown = false ) : string
$sectionName string Name of section to render
$variables array The variables to use
$ignoreUnknown boolean Ignore an unknown section and just return an empty string
리턴 string rendered template for the section

setControllerContext() 공개 메소드

public setControllerContext ( ControllerContext $controllerContext )
$controllerContext Neos\Flow\Mvc\Controller\ControllerContext

setOption() 공개 메소드

Set a specific option of this View
public setOption ( string $optionName, mixed $value ) : void
$optionName string
$value mixed
리턴 void

setOptions() 보호된 메소드

Merges the given options with the default values and sets the resulting options in this object.
protected setOptions ( array $options )
$options array

setTemplatePathAndFilename() 공개 메소드

public setTemplatePathAndFilename ( string $templatePathAndFilename )
$templatePathAndFilename string

validateOptions() 보호된 메소드

Validate options given to this view.
protected validateOptions ( array $options )
$options array

프로퍼티 상세

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

protected ControllerContext,Neos\Flow\Mvc\Controller $controllerContext
리턴 Neos\Flow\Mvc\Controller\ControllerContext

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

The configuration options of this view
protected array $options
리턴 array

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

Syntax example: [ 'someOptionName' => ['defaultValue', 'some description', 'string'), 'someOtherOptionName' => ['defaultValue', some description', integer), ... )
protected array $supportedOptions
리턴 array