Control
abstract class Control extends Component implements IRenderable
Control is renderable Presenter component.
Properties
bool | $snippetMode | ||
ITemplate|Template|stdClass read-only | $template |
Methods
getTemplate()
No description
createTemplate()
No description
void
templatePrepareFilters(ITemplate $template)
Descendant can override this method to customize template compile-time filters.
flashMessage($message, string $type = 'info')
Saves the message to template, that can be displayed after redirect.
void
redrawControl(string $snippet = null, bool $redraw = true)
Forces control or its snippet to repaint.
bool
isControlInvalid(string $snippet = null)
Is required to repaint the control or its snippet?
string
getSnippetId(string $name)
Returns snippet HTML ID.
Details
at line 38
final
setTemplateFactory(ITemplateFactory $templateFactory)
No description
at line 45
final ITemplate
getTemplate()
No description
at line 54
protected ITemplate
createTemplate()
No description
at line 64
void
templatePrepareFilters(ITemplate $template)
Descendant can override this method to customize template compile-time filters.
at line 72
stdClass
flashMessage($message, string $type = 'info')
Saves the message to template, that can be displayed after redirect.
at line 92
void
redrawControl(string $snippet = null, bool $redraw = true)
Forces control or its snippet to repaint.
at line 109
bool
isControlInvalid(string $snippet = null)
Is required to repaint the control or its snippet?
at line 140
string
getSnippetId(string $name)
Returns snippet HTML ID.