Packages

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • NAppForm
  • NApplication
  • NCliRouter
  • NControl
  • NDownloadResponse
  • NForwardingResponse
  • NJsonResponse
  • NLink
  • NMultiRouter
  • NPresenter
  • NPresenterComponent
  • NPresenterLoader
  • NPresenterRequest
  • NRedirectingResponse
  • NRenderResponse
  • NRoute
  • NSimpleRouter

Interfaces

  • IPartiallyRenderable
  • IPresenter
  • IPresenterLoader
  • IPresenterResponse
  • IRenderable
  • IRouter
  • ISignalReceiver
  • IStatePersistent

Exceptions

  • NAbortException
  • NApplicationException
  • NBadRequestException
  • NBadSignalException
  • NForbiddenRequestException
  • NInvalidLinkException
  • NInvalidPresenterException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Class NControl

Control is renderable component.

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

Direct known subclasses

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

Returns

ITemplate
protected ITemplate
# createTemplate( )

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
__construct(), attached(), formatSignalMethod(), getParam(), getParamId(), getPersistentParams(), getPresenter(), getReflection(), getUniqueId(), lazyLink(), link(), loadState(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), redirect(), saveState(), signalReceived(), tryCall()
Methods inherited from NComponentContainer
__clone(), addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent()
Methods inherited from NComponent
__wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent()
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod()
Constants inherited from IComponent
NAME_SEPARATOR
Properties inherited from NPresenterComponent
$params
Nette Framework 0.9.7 (for PHP 5.2) API documentation generated by ApiGen 2.3.0