Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • Component
  • ComponentReflection
  • Control
  • Form
  • Link
  • MethodReflection
  • Multiplier
  • Presenter

Interfaces

  • IRenderable
  • ISignalReceiver
  • IStatePersistent
  • ITemplate
  • ITemplateFactory

Exceptions

  • BadSignalException
  • InvalidLinkException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class Control

Control is renderable Presenter component.

Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent uses Nette\SmartObject
Extended by Nette\ComponentModel\Container implements Nette\ComponentModel\IContainer
Extended by Nette\Application\UI\Component implements Nette\Application\UI\ISignalReceiver, Nette\Application\UI\IStatePersistent, ArrayAccess
Extended by Nette\Application\UI\Control implements Nette\Application\UI\IRenderable

Direct known subclasses

Nette\Application\UI\Presenter
Abstract
Namespace: Nette\Application\UI
Located at Application/UI/Control.php
Methods summary
public
# setTemplateFactory( Nette\Application\UI\ITemplateFactory $templateFactory )
public Nette\Application\UI\ITemplate
# getTemplate( )

Returns

Nette\Application\UI\ITemplate
ITemplate
protected Nette\Application\UI\ITemplate
# createTemplate( )

Returns

Nette\Application\UI\ITemplate
ITemplate
public
# templatePrepareFilters( Nette\Application\UI\ITemplate $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
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
$type

Returns

stdClass
\stdClass
public
# redrawControl( $snippet = null, $redraw = true )

Forces control or its snippet to repaint.

Forces control or its snippet to repaint.

Implementation of

Nette\Application\UI\IRenderable::redrawControl()
public
# invalidateControl( $snippet = null )

Deprecated

public
# validateControl( $snippet = null )

Deprecated

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
name

Returns

boolean
bool

Implementation of

Nette\Application\UI\IRenderable::isControlInvalid()
public string
# getSnippetId( string $name = null )

Returns snippet HTML ID.

Returns snippet HTML ID.

Parameters

$name
name

Returns

string
string
Methods inherited from Nette\Application\UI\Component
attached(), checkRequirements(), error(), formatSignalMethod(), getParam(), getParameter(), getParameterId(), getParameters(), getPersistentParams(), getPresenter(), getReflection(), getUniqueId(), isLinkCurrent(), lazyLink(), link(), loadState(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), redirect(), redirectPermanent(), saveState(), signalReceived(), tryCall(), validateParent()
Methods inherited from Nette\ComponentModel\Container
__clone(), _isCloning(), addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent()
Methods inherited from Nette\ComponentModel\Component
__construct(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor()
Methods used from Nette\SmartObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod()
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties summary
public boolean $snippetMode
#
Properties inherited from Nette\Application\UI\Component
$onAnchor, $params
Magic properties summary
public read-only Nette\Application\UI\ITemplate|Nette\Bridges\ApplicationLatte\Template|stdClass $template
Magic properties inherited from Nette\Application\UI\Component
$linkCurrent, $presenter
Magic properties inherited from Nette\ComponentModel\Container
$components
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0