AbstractTemplateView
abstract class AbstractTemplateView extends AbstractTemplateView implements ViewInterface (View source)
The abstract base of all Fluid views.
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
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
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
bool
canRender(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