Class Control (namespace Nette\Application)


Control is renderable component.

Implements interfaces:

IPartiallyRenderable, ArrayAccess (internal interface)

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?
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
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

createComponent

protected void createComponent (string $name)

Delegates the creation of components to a createComponent<Name> method.

Input
string $name component name
Output
void  

line 95

createTemplate

protected ITemplate createTemplate ()

Output
ITemplate  

line 159

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 240

getSnippetId

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

Returns snippet HTML ID.

Input
string $name snippet name
Output
string  

line 77

getTemplate

public ITemplate getTemplate ()

Output
ITemplate  

line 146

getWidget

public IComponent getWidget (string $name)

Returns widget component specified by name.

Input
string $name
Output
IComponent  

line 183

invalidateControl

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

Forces control or its snippet to repaint.

Input
string $snippet
Output
void  

line 212

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 283

offsetExists

public bool offsetExists (string $name)

Does component specified by name exists?

Implementation of:

ArrayAccess::offsetExists
Input
string $name component name
Output
bool  

line 271

offsetGet

public IComponent offsetGet (string $name)

Returns component specified by name. Throws exception if component doesn't exist.

Implementation of:

ArrayAccess::offsetGet
Input
string $name component name
Output
IComponent  
Throws
throws InvalidArgumentException

line 258

offsetSet

public void. offsetSet (string $name, IComponent $component)

Adds the component to the container.

Implementation of:

ArrayAccess::offsetSet
Input
string $name component name
IComponent $component
Output
void.  

line 295

offsetUnset

public void offsetUnset (string $name)

Removes component from the container. Throws exception if component doesn't exist.

Implementation of:

ArrayAccess::offsetUnset
Input
string $name component name
Output
void  

line 133

templatePrepareFilters

public void templatePrepareFilters (Template $template)

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

Input
Template $template
Output
void  

line 195

validateControl

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

Allows control or its snippet to not repaint.

Input
string $snippet
Output
void