Class NForm
Creates, validates and renders HTML forms.
- NObject
-
NComponent implements IComponent
-
NComponentContainer implements IComponentContainer
-
NFormContainer implements ArrayAccess
-
NForm
Direct known subclasses
NAppForm
public
|
|
protected
|
#
attached(
This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself. |
final public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
string
|
|
public
|
#
addProtection( string $message = NULL, integer $timeout = NULL )
Cross-Site Request Forgery (CSRF) form protection. |
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
final public
|
|
public
boolean
|
|
final public
|
|
final public
boolean
|
|
public
|
|
final public
array
|
|
public
|
|
protected
array
|
|
public
array
|
|
public
|
|
public
array
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
final public
|
|
public
|
|
public
boolean
|
|
protected
|
|
protected
|
createComponent(),
getComponent(),
getComponents(),
removeComponent(),
validateChildComponent()
|
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor(),
validateParent()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
setParent()
|
string
|
EQUAL
|
':equal' |
#
validator |
string
|
IS_IN
|
':equal' |
#
validator |
string
|
FILLED
|
':filled' |
#
validator |
string
|
VALID
|
':valid' |
#
validator |
string
|
PROTECTION
|
'NHiddenField::validateEqual' |
|
string
|
SUBMITTED
|
':submitted' |
|
string
|
MIN_LENGTH
|
':minLength' |
|
string
|
MAX_LENGTH
|
':maxLength' |
|
string
|
LENGTH
|
':length' |
|
string
|
EMAIL
|
':email' |
|
string
|
URL
|
':url' |
|
string
|
REGEXP
|
':regexp' |
|
string
|
PATTERN
|
':pattern' |
|
string
|
INTEGER
|
':integer' |
|
string
|
NUMERIC
|
':integer' |
|
string
|
FLOAT
|
':float' |
|
string
|
RANGE
|
':range' |
|
string
|
COUNT
|
':length' |
|
string
|
MAX_FILE_SIZE
|
':fileSize' |
|
string
|
MIME_TYPE
|
':mimeType' |
|
string
|
IMAGE
|
':image' |
|
string
|
GET
|
'get' |
#
method |
string
|
POST
|
'post' |
#
method |
string
|
TRACKER_ID
|
'_form_' |
|
string
|
PROTECTOR_ID
|
'_token_' |
NAME_SEPARATOR
|
public
array
|
$onSuccess |
|
#
of function(Form $sender); Occurs when the form is submitted and successfully validated |
public
array
|
$onError |
|
#
of function(Form $sender); Occurs when the form is submitted and is not valid |
public
array
|
$onSubmit |
|
#
of function(Form $sender); Occurs when the form is submitted |
$currentGroup,
$onValidate,
$valid
|