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?
|
bool |
offsetExists
(string $name)
Does component specified by name exists?
|
IComponent |
offsetGet
(string $name)
Returns component specified by name. Throws exception if component doesn't exist.
|
void. |
offsetSet
(string $name, IComponent $component)
Adds the component to the container.
|
void |
offsetUnset
(string $name)
Removes component from the container. Throws exception if component doesn't exist.
|
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 void |
createComponent
(string $name)
Delegates the creation of components to a createComponent<Name> method.
|
protected ITemplate |
|
Methods Inherited From PresenterComponent |
---|
__construct(), ajaxLink(), attached(), formatSignalMethod(), getParam(), getParamId(), getPersistentParams(), getPresenter(), getUniqueId(), lazyLink(), link(), loadState(), redirect(), saveState(), signalReceived(), tryCall() |
Methods Inherited From ComponentContainer |
---|
addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent(), __clone() |
Methods Inherited From Component |
---|
__construct(), attached(), detached(), getName(), getParent(), getService(), getServiceLocator(), lookup(), lookupPath(), monitor(), setParent(), setServiceLocator(), validateParent(), __clone(), __wakeup() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary |
---|
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 56 createComponentprotected void createComponent (string $name) Delegates the creation of components to a createComponent<Name> method.
|
||||||||||||||||||
line 95 createTemplateprotected ITemplate createTemplate ()
|
||||||||||||||||||
line 159 flashMessagepublic stdClass flashMessage (string $message, [string $type = Saves the message to template, that can be displayed after redirect.
|
||||||||||||||||||
line 240 getSnippetIdpublic string getSnippetId ([string $name = Returns snippet HTML ID.
|
||||||||||||||||||
line 77 getTemplatepublic ITemplate getTemplate ()
|
||||||||||||||||||
line 146 getWidgetpublic IComponent getWidget (string $name) Returns widget component specified by name.
|
||||||||||||||||||
line 183 invalidateControlpublic void invalidateControl ([string $snippet = Forces control or its snippet to repaint. Implementation of:
|
||||||||||||||||||
line 212 isControlInvalidpublic bool isControlInvalid ([string $snippet = Is required to repaint the control or its snippet? Implementation of:
|
||||||||||||||||||
line 283 offsetExistspublic bool offsetExists (string $name) Does component specified by name exists? Implementation of:
ArrayAccess::offsetExists
|
||||||||||||||||||
line 271 offsetGetpublic IComponent offsetGet (string $name) Returns component specified by name. Throws exception if component doesn't exist. Implementation of:
ArrayAccess::offsetGet
|
||||||||||||||||||
line 258 offsetSetpublic void. offsetSet (string $name, IComponent $component) Adds the component to the container. Implementation of:
ArrayAccess::offsetSet
|
||||||||||||||||||
line 295 offsetUnsetpublic void offsetUnset (string $name) Removes component from the container. Throws exception if component doesn't exist. Implementation of:
ArrayAccess::offsetUnset
|
||||||||||||||||||
line 133 templatePrepareFilterspublic void templatePrepareFilters (Template $template) Descendant can override this method to customize template compile-time filters.
|
||||||||||||||||||
line 195 validateControlpublic void validateControl ([string $snippet = Allows control or its snippet to not repaint.
|