AbstractTemplateView
abstract class AbstractTemplateView extends AbstractTemplateView implements ViewInterface (View source)
The abstract base of all Fluid views.
Traits
Properties
protected array | $supportedOptions | This contains the supported options, their default values, descriptions and types. |
|
protected array | $options | The configuration options of this view |
|
protected ControllerContext | $controllerContext |
Methods
No description
No description
Add a variable to the view data collection.
Add multiple variables to the view data collection
Factory method to create an instance with given options.
Set default options based on the supportedOptions provided
No description
Renders a given section.
Validate options given to this view.
Merges the given options with the default values and sets the resulting options in this object.
Get a specific option of this View
Set a specific option of this View
Details
StreamInterface
createStream(string $content = '')
No description
StreamInterface
createStreamFromFile(string $filename, string $mode = 'r')
No description
StreamInterface
createStreamFromResource($resource)
No description
StreamInterface
render($actionName = null)
No description
ViewInterface
assign(string $key, mixed $value)
Add a variable to the view data collection.
Can be chained: $this->view->assign(..., ...)->assign(..., ...);
ViewInterface
assignMultiple(array $values)
Add multiple variables to the view data collection
static ViewInterface
createWithOptions(array $options)
Factory method to create an instance with given options.
__construct(array $options = null)
Set default options based on the supportedOptions provided
void
setTemplatePathAndFilename(string $templatePathAndFilename)
No description
void
setControllerContext(ControllerContext $controllerContext)
No description
string
renderSection(string $sectionName, array $variables = [], bool $ignoreUnknown = false)
Renders a given section.
protected void
validateOptions(array $options)
Validate options given to this view.
protected void
setOptions(array $options)
Merges the given options with the default values and sets the resulting options in this object.
mixed
getOption(string $optionName)
Get a specific option of this View
void
setOption(string $optionName, mixed $value)
Set a specific option of this View