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 37)
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
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
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 PresenterComponent
__construct(), ajaxLink(), attached(), formatSignalMethod(), getParam(), getParamId(), getPersistentParams(), getPresenter(), getUniqueId(), lazyLink(), link(), loadState(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), redirect(), saveState(), signalReceived(), tryCall()
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 72

createTemplate

protected ITemplate createTemplate ()

Output
ITemplate  

line 141

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 222

getSnippetId

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

Returns snippet HTML ID.

Input
string $name snippet name
Output
string  

line 54

getTemplate

public ITemplate getTemplate ()

Output
ITemplate  

line 128

getWidget

public IComponent getWidget (string $name)

Returns widget component specified by name.

Input
string $name
Output
IComponent  

line 165

invalidateControl

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

Forces control or its snippet to repaint.

Input
string $snippet
Output
void  

line 194

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 115

templatePrepareFilters

public void templatePrepareFilters (Template $template)

Descendant can override this method to customize template compile-time filters.

Input
Template $template
Output
void  

line 177

validateControl

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

Allows control or its snippet to not repaint.

Input
string $snippet
Output
void