Class NAppForm
Web form adapted for Presenter.
- NObject
-
NComponent implements IComponent
-
NComponentContainer implements IComponentContainer
-
NFormContainer implements ArrayAccess
-
NForm
-
NAppForm implements ISignalReceiver
public
|
#
__construct(
IComponentContainer
$parent = NULL,
$name = NULL
)
Application form constructor. Application form constructor. |
public
NPresenter|NULL
|
#
getPresenter(
bool
$need = true
)
Returns the presenter where this component belongs to. Returns the presenter where this component belongs to. Parameters$need bool throw exception if presenter doesn't exist? |
protected
void
|
#
attached(
IComponent
$presenter
)
This method will be called when the component (or component's parent) 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 IComponent |
public
bool
|
#
isAnchored(
)
Tells if the form is anchored. Tells if the form is anchored. |
protected
array
|
#
receiveHttpData(
)
Internal: receives submitted HTTP data. Internal: receives submitted HTTP data. |
public
void
|
#
signalReceived(
string
$signal
)
This method is called by presenter. This method is called by presenter. Parameters$signal stringImplementation of |
Methods Inherited From NForm
__construct(), attached(), getForm(), setAction(), getAction(), setMethod(), getMethod(), addProtection(), addGroup(), removeGroup(), getGroups(), getGroup(), setTranslator(), getTranslator(), isAnchored(), isSubmitted(), setSubmittedBy(), getHttpData(), fireEvents(), receiveHttpData(), getValues(), addError(), getErrors(), hasErrors(), cleanErrors(), getElementPrototype(), setRenderer(), getRenderer(), render(), __toString(), getHttpRequest(), getSession()
Methods Inherited From NFormContainer
setDefaults(), setValues(), getValues(), isValid(), validate(), setCurrentGroup(), getCurrentGroup(), addComponent(), getControls(), getForm(), addText(), addPassword(), addTextArea(), addFile(), addHidden(), addCheckbox(), addRadioList(), addSelect(), addMultiSelect(), addSubmit(), addButton(), addImage(), addContainer(), offsetSet(), offsetGet(), offsetExists(), offsetUnset(), __clone()
Methods Inherited From NComponentContainer
addComponent(), removeComponent(), getComponent(), createComponent(), getComponents(), validateChildComponent(), __clone()
Methods Inherited From NComponent
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From NObject
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From NForm
EQUAL, IS_IN, FILLED, VALID, PROTECTION, SUBMITTED, MIN_LENGTH, MAX_LENGTH, LENGTH, EMAIL, URL, REGEXP, PATTERN, INTEGER, NUMERIC, FLOAT, RANGE, MAX_FILE_SIZE, MIME_TYPE, IMAGE, GET, POST, TRACKER_ID, PROTECTOR_ID
Constants Inherited From NComponent
NAME_SEPARATOR
Properties Inherited From NForm
$onSubmit, $onInvalidSubmit
Properties Inherited From NFormContainer
$onValidate, $currentGroup, $valid