Class AppForm (namespace Nette\Application)


Web form as presenter component.

Object
   |
   --Component
      |
      --ComponentContainer
         |
         --FormContainer
            |
            --Form
               |
               --AppForm

Implements interfaces:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/AppForm.php (line 37)
Public Method Summary
AppForm
__construct ([$parent = NULL], [$name = NULL])
Application form constructor.
void
addTracker ($name)
Presenter|NULL
getPresenter ([bool $need = TRUE])
Returns the presenter where this component belongs to.
void
processHttpRequest ([$foo = NULL])
Detects form submission and loads PresenterRequest values.
void
signalReceived (string $signal)
This method is called by presenter.
Protected Method Summary
protected void
attached (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.
Methods Inherited From Form
__construct(), addError(), addGroup(), addProtection(), addTracker(), attached(), cleanErrors(), getAction(), getElementPrototype(), getEncoding(), getErrors(), getForm(), getGroup(), getGroups(), getHttpRequest(), getMethod(), getRenderer(), getSession(), getTranslator(), getValues(), hasErrors(), isPopulated(), isSubmitted(), isValid(), loadHttpData(), processHttpRequest(), removeGroup(), render(), setAction(), setDefaults(), setEncoding(), setMethod(), setRenderer(), setSubmittedBy(), setTranslator(), setValues(), submit(), validate(), __toString()
Methods Inherited From FormContainer
addButton(), addCheckbox(), addComponent(), addContainer(), addFile(), addHidden(), addImage(), addMultiSelect(), addPassword(), addRadioList(), addRepeater(), addSelect(), addSubmit(), addText(), addTextArea(), getControls(), getForm(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), setCurrentGroup()
Methods Inherited From ComponentContainer
addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent(), __clone()
Methods Inherited From Component
__construct(), attached(), detached(), getName(), getParent(), getService(), getServiceLocator(), lookup(), lookupPath(), monitor(), setParent(), setServiceLocator(), validateParent(), __clone(), __wakeup()
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constant Summary
Constants Inherited From Form
EMAIL, EQUAL, FILLED, FLOAT, GET, INTEGER, IS_IN, LENGTH, MAX_FILE_SIZE, MAX_LENGTH, MIME_TYPE, MIN_LENGTH, NUMERIC, POST, PROTECTOR_ID, RANGE, REGEXP, SCRIPT, SUBMITTED, TRACKER_ID, URL, VALID
Variable Summary

Method Details

line 43

__construct

public AppForm __construct ([$parent = NULL], [$name = NULL])

Application form constructor.

Input
$parent
$name
Output
AppForm  

line 54

addTracker

public void addTracker ($name)

Input
$name
Output
void  

line 78

attached

protected void attached (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.

Input
IComponent $presenter
Output
void  

line 65

getPresenter

public Presenter|NULL getPresenter ([bool $need = TRUE])

Returns the presenter where this component belongs to.

Input
bool $need throw exception if presenter doesn't exist?
Output
Presenter|NULL  

line 95

processHttpRequest

public void processHttpRequest ([$foo = NULL])

Detects form submission and loads PresenterRequest values.

Input
$foo
Output
void  

line 126

signalReceived

public void signalReceived (string $signal)

This method is called by presenter.

Input
string $signal
Output
void