Class NAppForm


Web form as presenter component.

Implements interfaces:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/AppForm.php (line 37)
Public Method Summary
NAppForm
__construct ([$parent = NULL], [$name = NULL])
NApplication form constructor.
NPresenter|NULL
getPresenter ([bool $need = TRUE])
Returns the presenter where this component belongs to.
bool
Tells if the form is anchored.
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.
protected array
Internal: receives submitted HTTP data.
Methods Inherited From NForm
__construct(), addError(), addGroup(), addProtection(), addTracker(), attached(), cleanErrors(), fireEvents(), getAction(), getElementPrototype(), getEncoding(), getErrors(), getForm(), getGroup(), getGroups(), getHttpData(), getHttpRequest(), getMethod(), getRenderer(), getSession(), getTranslator(), getValues(), hasErrors(), isAnchored(), isSubmitted(), processHttpRequest(), receiveHttpData(), removeGroup(), render(), setAction(), setEncoding(), setMethod(), setRenderer(), setSubmittedBy(), setTranslator(), __toString()
Methods Inherited From NFormContainer
addButton(), addCheckbox(), addComponent(), addContainer(), addFile(), addHidden(), addImage(), addMultiSelect(), addPassword(), addRadioList(), addRepeater(), addSelect(), addSubmit(), addText(), addTextArea(), getControls(), getForm(), getValues(), isValid(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), setCurrentGroup(), setDefaults(), setValues(), validate()
Methods Inherited From NComponentContainer
addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent(), __clone()
Methods Inherited From NComponent
__construct(), attached(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent(), __clone(), __wakeup()
Methods Inherited From NObject
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constant Summary
Constants Inherited From NForm
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 NAppForm __construct ([$parent = NULL], [$name = NULL])

NApplication form constructor.

Input
$parent
$name
Output
NAppForm  

line 72

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 59

getPresenter

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

Returns the presenter where this component belongs to.

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

line 97

isAnchored

public bool isAnchored ()

Tells if the form is anchored.

Output
bool  

line 108

receiveHttpData

protected array receiveHttpData ()

Internal: receives submitted HTTP data.

Output
array  

line 139

signalReceived

public void signalReceived (string $signal)

This method is called by presenter.

Input
string $signal
Output
void