PHP Класс Neos\FluidAdaptor\View\AbstractTemplateView

Наследование: extends TYPO3Fluid\Fluid\View\AbstractTemplateView, implements Neos\Flow\Mvc\View\ViewInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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