abstract class Control extends Component implements IRenderable

Control is renderable Presenter component.

Properties

bool $snippetMode

Methods

setTemplateFactory(ITemplateFactory $templateFactory)

No description

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)

Parameters

ITemplateFactory $templateFactory

at line 45
final ITemplate getTemplate()

Return Value

ITemplate

at line 54
protected ITemplate createTemplate()

Return Value

ITemplate

at line 64
void templatePrepareFilters(ITemplate $template)

Descendant can override this method to customize template compile-time filters.

Parameters

ITemplate $template

Return Value

void

at line 72
stdClass flashMessage($message, string $type = 'info')

Saves the message to template, that can be displayed after redirect.

Parameters

$message
string $type

Return Value

stdClass

at line 92
void redrawControl(string $snippet = null, bool $redraw = true)

Forces control or its snippet to repaint.

Parameters

string $snippet
bool $redraw

Return Value

void

at line 109
bool isControlInvalid(string $snippet = null)

Is required to repaint the control or its snippet?

Parameters

string $snippet

Return Value

bool

at line 143
string getSnippetId(string $name)

Returns snippet HTML ID.

Parameters

string $name

Return Value

string