Control
abstract class Control extends Component implements Renderable
Control is renderable Presenter component.
Properties
$snippetMode | |||
Template|DefaultTemplate|stdClass read-only | $template |
Methods
getTemplate()
No description
createTemplate(string|null $class = null)
No description
string|null
formatTemplateClass()
No description
string|null
checkTemplateClass(string $class)
No description
void
flashMessage(string|stdClass|Stringable $message, string $type = 'info')
Saves the message to template, that can be displayed after redirect.
void
redrawControl(string|null $snippet = null, bool $redraw = true)
Forces control or its snippet to repaint.
bool
isControlInvalid(string|null $snippet = null)
Is required to repaint the control or its snippet?
string
getSnippetId(string $name)
Returns snippet HTML ID.
Details
at line 31
final Control
setTemplateFactory(TemplateFactory $templateFactory)
No description
at line 38
final Template
getTemplate()
No description
at line 48
protected Template
createTemplate(string|null $class = null)
No description
at line 56
string|null
formatTemplateClass()
No description
at line 63
protected string|null
checkTemplateClass(string $class)
internal |
No description
at line 81
void
templatePrepareFilters(Template $template)
No description
at line 90
stdClass
flashMessage(string|stdClass|Stringable $message, string $type = 'info')
Saves the message to template, that can be displayed after redirect.
at line 111
void
redrawControl(string|null $snippet = null, bool $redraw = true)
Forces control or its snippet to repaint.
at line 128
bool
isControlInvalid(string|null $snippet = null)
Is required to repaint the control or its snippet?
at line 158
string
getSnippetId(string $name)
Returns snippet HTML ID.