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 Form

Web form adapted for Presenter.

Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent uses Nette\SmartObject
Extended by Nette\ComponentModel\Container implements Nette\ComponentModel\IContainer
Extended by Nette\Forms\Container implements ArrayAccess
Extended by Nette\Forms\Form implements Nette\Utils\IHtmlString
Extended by Nette\Application\UI\Form implements Nette\Application\UI\ISignalReceiver
Namespace: Nette\Application\UI
Located at Application/UI/Form.php
Methods summary
public
# __construct( Nette\ComponentModel\IContainer $parent = null, $name = null )

Application form constructor.

Application form constructor.

Parameters

$parent
$name

Overrides

Nette\Forms\Form::__construct()
protected
# validateParent( Nette\ComponentModel\IContainer $parent )

Throws

Nette\InvalidStateException
Nette\InvalidStateException

Overrides

Nette\Forms\Form::validateParent()
public Nette\Application\UI\Presenter|null
# getPresenter( boolean $throw = true )

Returns the presenter where this component belongs to.

Returns the presenter where this component belongs to.

Parameters

$throw
exception if presenter doesn't exist?

Returns

Nette\Application\UI\Presenter|null
Presenter|null
protected
# attached( Nette\ComponentModel\IComponent $presenter )

This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself.

This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself.

Parameters

$presenter

Overrides

Nette\Forms\Form::attached()
public boolean
# isAnchored( )

Tells if the form is anchored.

Tells if the form is anchored.

Returns

boolean
bool

Overrides

Nette\Forms\Form::isAnchored()
protected array|null
# receiveHttpData( )

Internal: returns submitted HTTP data or null when form was not submitted.

Internal: returns submitted HTTP data or null when form was not submitted.

Returns

array|null
array|null

Overrides

Nette\Forms\Form::receiveHttpData()
protected
# beforeRender( )

Overrides

Nette\Forms\Form::beforeRender()
public
# signalReceived( string $signal )

This method is called by presenter.

This method is called by presenter.

Parameters

$signal

Implementation of

Nette\Application\UI\ISignalReceiver::signalReceived()
Methods inherited from Nette\Forms\Form
__toString(), addError(), addGroup(), addProtection(), cleanErrors(), fireEvents(), fireRenderEvents(), getAction(), getElementPrototype(), getErrors(), getForm(), getGroup(), getGroups(), getHttpData(), getMethod(), getOwnErrors(), getRenderer(), getToggles(), getTranslator(), hasErrors(), isMethod(), isSubmitted(), isSuccess(), removeGroup(), render(), reset(), setAction(), setMethod(), setRenderer(), setSubmittedBy(), setTranslator(), validate(), validateMaxPostSize()
Methods inherited from Nette\Forms\Container
__call(), __clone(), addButton(), addCheckbox(), addCheckboxList(), addComponent(), addContainer(), addEmail(), addHidden(), addImage(), addInteger(), addMultiSelect(), addMultiUpload(), addPassword(), addRadioList(), addSelect(), addSubmit(), addText(), addTextArea(), addUpload(), extensionMethod(), getControls(), getCurrentGroup(), getValues(), isValid(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), setCurrentGroup(), setDefaults(), setValues()
Methods inherited from Nette\ComponentModel\Container
_isCloning(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent()
Methods inherited from Nette\ComponentModel\Component
__sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor()
Methods used from Nette\SmartObject
__callStatic(), __get(), __isset(), __set(), __unset(), getReflection()
Constants inherited from Nette\Forms\Form
BLANK, COUNT, DATA_FILE, DATA_KEYS, DATA_LINE, DATA_TEXT, EMAIL, EQUAL, FILLED, FLOAT, GET, IMAGE, INTEGER, IS_IN, IS_NOT_IN, LENGTH, MAX, MAX_FILE_SIZE, MAX_LENGTH, MAX_POST_SIZE, MIME_TYPE, MIN, MIN_LENGTH, NOT_EQUAL, NUMERIC, PATTERN, PATTERN_ICASE, POST, PROTECTION, PROTECTOR_ID, RANGE, REQUIRED, SUBMITTED, TRACKER_ID, URL, VALID
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties summary
public callable[] $onAnchor

function (self $sender); Occurs when form is attached to presenter

function (self $sender); Occurs when form is attached to presenter

#
Properties inherited from Nette\Forms\Form
$httpRequest, $onError, $onRender, $onSubmit, $onSuccess
Properties inherited from Nette\Forms\Container
$currentGroup, $onValidate
Magic properties inherited from Nette\Forms\Form
$action, $elementPrototype, $errors, $method, $ownErrors, $renderer
Magic properties inherited from Nette\Forms\Container
$controls, $form, $values
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