Class Control (namespace Nette\Application)
Control is renderable component.
Object | --Component | --ComponentContainer | --PresenterComponent | --Control
Implements interfaces:
Direct Known Sub-classes:
Public Method Summary | |
---|---|
stdClass |
flashMessage
(string $message, [string $type =
'info' ])
Saves the message to template, that can be displayed after redirect.
|
string |
getSnippetId
([string $name =
NULL ])
Returns snippet HTML ID.
|
ITemplate |
getTemplate
()
|
IComponent |
getWidget
(string $name)
Returns widget component specified by name.
|
void |
invalidateControl
([string $snippet =
NULL ])
Forces control or its snippet to repaint.
|
bool |
isControlInvalid
([string $snippet =
NULL ])
Is required to repaint the control or its snippet?
|
void |
templatePrepareFilters
(Template $template)
Descendant can override this method to customize template compile-time filters.
|
void |
validateControl
([string $snippet =
NULL ])
Allows control or its snippet to not repaint.
|
Protected Method Summary | |
---|---|
protected ITemplate |
|
Methods Inherited From ComponentContainer |
---|
addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent(), __clone() |
Methods Inherited From Component |
---|
__construct(), attached(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent(), __clone(), __wakeup() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary |
---|
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 58 createTemplateprotected ITemplate createTemplate ()
|
|||||||||||||||
line 127 flashMessagepublic stdClass flashMessage (string $message, [string $type = Saves the message to template, that can be displayed after redirect.
|
|||||||||||||||
line 208 getSnippetIdpublic string getSnippetId ([string $name = Returns snippet HTML ID.
|
|||||||||||||||
line 40 getTemplatepublic ITemplate getTemplate ()
|
|||||||||||||||
line 114 getWidgetpublic IComponent getWidget (string $name) Returns widget component specified by name.
|
|||||||||||||||
line 151 invalidateControlpublic void invalidateControl ([string $snippet = Forces control or its snippet to repaint. Implementation of:
|
|||||||||||||||
line 180 isControlInvalidpublic bool isControlInvalid ([string $snippet = Is required to repaint the control or its snippet? Implementation of:
|
|||||||||||||||
line 101 templatePrepareFilterspublic void templatePrepareFilters (Template $template) Descendant can override this method to customize template compile-time filters.
|
|||||||||||||||
line 163 validateControlpublic void validateControl ([string $snippet = Allows control or its snippet to not repaint.
|