FluidViewAdapter implements ViewInterface

A view adapter that handles a Typo3Fluid view and implements generic ext:core ViewInterface.

Table of Contents

Interfaces

ViewInterface
A generic view interface.

Properties

$view  : ViewInterface|TemplateAwareViewInterface

Methods

__construct()  : mixed
assign()  : self
Add a variable to the view data collection.
assignMultiple()  : self
Add multiple variables to the view data collection.
render()  : string
Renders the view. Optionally receives a template location.

Properties

$view read-only

protected ViewInterface|TemplateAwareViewInterface $view

Methods

__construct()

public __construct(ViewInterface|TemplateAwareViewInterface $view) : mixed
Parameters
$view : ViewInterface|TemplateAwareViewInterface

assign()

Add a variable to the view data collection.

public assign(string $key, mixed $value) : self
Parameters
$key : string
$value : mixed
Return values
self

assignMultiple()

Add multiple variables to the view data collection.

public assignMultiple(array<string|int, mixed> $values) : self
Parameters
$values : array<string|int, mixed>

Array of string keys with mixed-type values.

Return values
self

render()

Renders the view. Optionally receives a template location.

public render([string $templateFileName = '' ]) : string
Parameters
$templateFileName : string = ''
Return values
string

        
On this page

Search results