Class NControl
NControl is renderable component.
NObject | --NComponent | --NComponentContainer | --NPresenterComponent | --NControl
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
(NTemplate $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 NComponentContainer |
---|
addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent(), __clone() |
Methods Inherited From NComponent |
---|
__construct(), attached(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent(), __clone(), __wakeup() |
Methods Inherited From NObject |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary |
---|
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 72 createTemplateprotected ITemplate createTemplate ()
|
|||||||||||||||
line 136 flashMessagepublic stdClass flashMessage (string $message, [string $type = Saves the message to template, that can be displayed after redirect.
|
|||||||||||||||
line 217 getSnippetIdpublic string getSnippetId ([string $name = Returns snippet HTML ID.
|
|||||||||||||||
line 54 getTemplatepublic ITemplate getTemplate ()
|
|||||||||||||||
line 123 getWidgetpublic IComponent getWidget (string $name) Returns widget component specified by name.
|
|||||||||||||||
line 160 invalidateControlpublic void invalidateControl ([string $snippet = Forces control or its snippet to repaint. Implementation of:
|
|||||||||||||||
line 189 isControlInvalidpublic bool isControlInvalid ([string $snippet = Is required to repaint the control or its snippet? Implementation of:
|
|||||||||||||||
line 110 templatePrepareFilterspublic void templatePrepareFilters (NTemplate $template) Descendant can override this method to customize template compile-time filters.
|
|||||||||||||||
line 172 validateControlpublic void validateControl ([string $snippet = Allows control or its snippet to not repaint.
|