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 NControl

Control is renderable Presenter component.

NObject
Extended by NComponent implements IComponent
Extended by NComponentContainer implements IComponentContainer
Extended by NPresenterComponent implements ISignalReceiver, IStatePersistent, ArrayAccess
Extended by NControl implements IRenderable

Direct known subclasses

NPresenter
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( NTemplate $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
NTemplate
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 NPresenterComponent
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 NComponentContainer
__clone(), addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent()
Methods inherited from NComponent
__construct(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor()
Methods inherited from NObject
__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 NPresenterComponent
$params
Magic properties summary
public read-only ITemplate $template
#
public read-only string $snippetId
#
Magic properties inherited from NPresenterComponent
$presenter, $uniqueId
Magic properties inherited from NComponentContainer
$components
Magic properties inherited from NComponent
$name, $parent
Magic properties inherited from NObject
$reflection
Nette Framework 2.0.18 (for PHP 5.2, prefixed) API documentation generated by ApiGen 2.8.0