Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

Interfaces

Exceptions

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Control

Control is renderable Presenter component.

Object
Extended by Component implements IComponent
Extended by ComponentContainer implements IComponentContainer
Extended by PresenterComponent implements ISignalReceiver, IStatePersistent, ArrayAccess
Extended by Control implements IRenderable

Direct known subclasses

Presenter
Abstract
Package: Nette\Application\UI
Author: David Grudl
Located at Application/UI/Control.php
Methods summary
public ITemplate
# getTemplate( )

Returns

ITemplate
protected ITemplate
# createTemplate( string|null $class = NULL )

Parameters

$class
string|null

Returns

ITemplate
public
# templatePrepareFilters( Template $template )

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

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

Parameters

$template
Template
public IComponent
# getWidget( string $name )

Returns widget component specified by name.

Returns widget component specified by name.

Parameters

$name
string

Returns

IComponent
public stdClass
# flashMessage( string $message, string $type = 'info' )

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

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

Parameters

$message
string
$type
string

Returns

stdClass
public
# invalidateControl( string $snippet = NULL )

Forces control or its snippet to repaint.

Forces control or its snippet to repaint.

Parameters

$snippet
string

Implementation of

IRenderable::invalidateControl()
public
# validateControl( string $snippet = NULL )

Allows control or its snippet to not repaint.

Allows control or its snippet to not repaint.

Parameters

$snippet
string
public boolean
# isControlInvalid( string $snippet = NULL )

Is required to repaint the control or its snippet?

Is required to repaint the control or its snippet?

Parameters

$snippet
string
snippet name

Returns

boolean

Implementation of

IRenderable::isControlInvalid()
public string
# getSnippetId( string $name = NULL )

Returns snippet HTML ID.

Returns snippet HTML ID.

Parameters

$name
string
snippet name

Returns

string
Methods inherited from PresenterComponent
attached(), checkRequirements(), formatSignalMethod(), getParam(), getParamId(), getParameter(), getParameterId(), getPersistentParams(), getPresenter(), getReflection(), getUniqueId(), isLinkCurrent(), lazyLink(), link(), loadState(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), redirect(), saveState(), signalReceived(), tryCall(), validateParent()
Methods inherited from ComponentContainer
__clone(), addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent()
Methods inherited from Component
__construct(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor()
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod()
Methods inherited from IComponent
setParent()
Constants inherited from IComponent
NAME_SEPARATOR
Properties summary
public boolean $snippetMode
#
Properties inherited from PresenterComponent
$params
Magic properties summary
public read-only ITemplate $template
#
public read-only string $snippetId
#
Magic properties inherited from PresenterComponent
$presenter, $uniqueId
Magic properties inherited from ComponentContainer
$components
Magic properties inherited from Component
$name, $parent
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0