TemplateView
class TemplateView extends AbstractTemplateView implements ViewInterface (View source)
A standard Flow view based on Fluid.
Properties
protected array | $supportedOptions | This contains the supported options, their default values, descriptions and types. |
from AbstractTemplateView |
protected array | $options | The configuration options of this view |
from AbstractTemplateView |
protected ControllerContext | $controllerContext | from AbstractTemplateView |
Methods
Factory method to create an instance with given options.
Set default options based on the supportedOptions provided
No description
Renders a given section.
Merges the given options with the default values and sets the resulting options in this object.
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