Class NControl
Control is renderable Presenter component.
- NObject
-
NComponent implements IComponent
-
NComponentContainer implements IComponentContainer
-
NPresenterComponent implements ISignalReceiver, IStatePersistent, ArrayAccess
-
NControl implements IPartiallyRenderable, IRenderable
Direct Known Subclasses
NPresenter
final public
ITemplate
|
#
getTemplate(
)
|
protected
ITemplate
|
#
createTemplate(
)
|
public
void
|
#
templatePrepareFilters(
NTemplate
$template
)
Descendant can override this method to customize template compile-time filters. Descendant can override this method to customize template compile-time filters. Parameters$template NTemplate |
public
IComponent
|
#
getWidget(
string
$name
)
Returns widget component specified by name. Returns widget component specified by name. Parameters$name string |
public
stdClass
|
#
flashMessage(
string
$message,
string
$type = 'info'
)
Saves the message to template, that can be displayed after redirect. Saves the message to template, that can be displayed after redirect. Parameters$message string$type string |
public
void
|
#
invalidateControl(
string
$snippet = NULL
)
Forces control or its snippet to repaint. Forces control or its snippet to repaint. Parameters$snippet stringImplementation of |
public
void
|
#
validateControl(
string
$snippet = NULL
)
Allows control or its snippet to not repaint. Allows control or its snippet to not repaint. Parameters$snippet string |
public
bool
|
#
isControlInvalid(
string
$snippet = NULL
)
Is required to repaint the control or its snippet? Is required to repaint the control or its snippet? Parameters$snippet string snippet nameImplementation of |
public
string
|
#
getSnippetId(
string
$name = NULL
)
Returns snippet HTML ID. Returns snippet HTML ID. Parameters$name string snippet name |
Methods Inherited From NPresenterComponent
__construct(), getPresenter(), getUniqueId(), attached(), tryCall(), getReflection(), loadState(), saveState(), getParam(), getParamId(), getPersistentParams(), signalReceived(), formatSignalMethod(), link(), lazyLink(), isLinkCurrent(), redirect(), offsetSet(), offsetGet(), offsetExists(), offsetUnset()
Methods Inherited From NComponentContainer
addComponent(), removeComponent(), getComponent(), createComponent(), getComponents(), validateChildComponent(), __clone()
Methods Inherited From NComponent
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From NObject
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From NComponent
NAME_SEPARATOR
Properties Inherited From NPresenterComponent
$params