Class Control (namespace Nette\Application)


Control is renderable component.

Implements interfaces:

IPartiallyRenderable

Direct Known Sub-classes:

Presenter
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Abstract:
Located: in /Application/Control.php (line 38)
Method Summary
protected ITemplate
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.
Methods Inherited From PresenterComponent
PresenterComponent::__construct(), PresenterComponent::ajaxLink(), PresenterComponent::attached(), PresenterComponent::formatSignalMethod(), PresenterComponent::getParam(), PresenterComponent::getParamId(), PresenterComponent::getPresenter(), PresenterComponent::getUniqueId(), PresenterComponent::lazyLink(), PresenterComponent::link(), PresenterComponent::loadState(), PresenterComponent::redirect(), PresenterComponent::saveState(), PresenterComponent::signalReceived(), PresenterComponent::tryCall()
Methods Inherited From ComponentContainer
ComponentContainer::addComponent(), ComponentContainer::createComponent(), ComponentContainer::getComponent(), ComponentContainer::getComponents(), ComponentContainer::isCloning(), ComponentContainer::removeComponent(), ComponentContainer::validateChildComponent(), ComponentContainer::__clone()
Methods Inherited From Component
Component::__construct(), Component::attached(), Component::detached(), Component::getName(), Component::getParent(), Component::getService(), Component::getServiceLocator(), Component::lookup(), Component::lookupPath(), Component::monitor(), Component::setParent(), Component::setServiceLocator(), Component::validateParent(), Component::__clone(), Component::__wakeup()
Methods Inherited From Object
Object::extensionMethod(), Object::getClass(), Object::getReflection(), Object::__call(), Object::__callStatic(), Object::__get(), Object::__isset(), Object::__set(), Object::__unset()
Variable Summary

Method Details

line 73

createTemplate

protected ITemplate createTemplate ()

Output
ITemplate  

line 120

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 201

getSnippetId

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

Returns snippet HTML ID.

Input
string $name snippet name
Output
string  

line 55

getTemplate

public ITemplate getTemplate ()

Output
ITemplate  

line 144

invalidateControl

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

Forces control or its snippet to repaint.

Input
string $snippet
Output
void  

line 173

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 156

validateControl

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

Allows control or its snippet to not repaint.

Input
string $snippet
Output
void