Class Control (namespace Nette\Application)


Control is renderable component.

Implements interfaces:

Direct Known Sub-classes:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Abstract:
Located: in /Application/Control.php (line 36)
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
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
validateControl ([string $snippet = NULL])
Allows control or its snippet to not repaint.
Protected Method Summary
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 71

createTemplate

protected ITemplate createTemplate ()

Output
ITemplate  

line 110

flashMessage

public stdClass flashMessage (string $message, [string $type = 'info'])

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

Input
string $message
string $type
Output
stdClass  

line 191

getSnippetId

public string getSnippetId ([string $name = NULL])

Returns snippet HTML ID.

Input
string $name snippet name
Output
string  

line 53

getTemplate

public ITemplate getTemplate ()

Output
ITemplate  

line 134

invalidateControl

public void invalidateControl ([string $snippet = NULL])

Forces control or its snippet to repaint.

Input
string $snippet
Output
void  

line 163

isControlInvalid

public bool isControlInvalid ([string $snippet = NULL])

Is required to repaint the control or its snippet?

Implementation of:

Input
string $snippet snippet name
Output
bool  

line 146

validateControl

public void validateControl ([string $snippet = NULL])

Allows control or its snippet to not repaint.

Input
string $snippet
Output
void