Class NForm
Creates, validates and renders HTML forms.
- NObject
- NComponent implements IComponent
- NComponentContainer implements IComponentContainer
- NFormContainer implements ArrayAccess, INamingContainer
- NForm
Direct known subclasses
NAppForm
Package:
Nette\Forms
Author: David Grudl
Example: forms/basic-example.php Form definition using fluent interfaces
Example: forms/manual-rendering.php Manual form rendering and separated form and rules definition
Example: forms/localization.php Localization (with Zend_Translate)
Example: forms/custom-rendering.php Custom form rendering
Example: forms/custom-validator.php How to use custom validator
Example: forms/naming-containers.php How to use naming containers
Example: forms/CSRF-protection.php How to use Cross-Site Request Forgery (CSRF) form protection
Example: forms/custom-encoding.php How to change charset
Located at Forms/Form.php
Author: David Grudl
Example: forms/basic-example.php Form definition using fluent interfaces
Example: forms/manual-rendering.php Manual form rendering and separated form and rules definition
Example: forms/localization.php Localization (with Zend_Translate)
Example: forms/custom-rendering.php Custom form rendering
Example: forms/custom-validator.php How to use custom validator
Example: forms/naming-containers.php How to use naming containers
Example: forms/CSRF-protection.php How to use Cross-Site Request Forgery (CSRF) form protection
Example: forms/custom-encoding.php How to change charset
Located at Forms/Form.php
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
string
|
|
public
|
|
final public
|
|
public
boolean
|
|
final public
|
|
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()
|
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor(),
validateParent()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
string
|
EQUAL
|
':equal' |
#
operation name |
string
|
IS_IN
|
':equal' |
|
string
|
FILLED
|
':filled' |
|
string
|
VALID
|
':valid' |
|
string
|
SUBMITTED
|
':submitted' |
|
string
|
MIN_LENGTH
|
':minLength' |
|
string
|
MAX_LENGTH
|
':maxLength' |
|
string
|
LENGTH
|
':length' |
|
string
|
EMAIL
|
':email' |
|
string
|
URL
|
':url' |
|
string
|
REGEXP
|
':regexp' |
|
string
|
INTEGER
|
':integer' |
|
string
|
NUMERIC
|
':integer' |
|
string
|
FLOAT
|
':float' |
|
string
|
RANGE
|
':range' |
|
string
|
MAX_FILE_SIZE
|
':fileSize' |
|
string
|
MIME_TYPE
|
':mimeType' |
|
string
|
SCRIPT
|
'Nette\\Forms\\InstantClientScript::javascript' |
|
string
|
GET
|
'get' |
#
method |
string
|
POST
|
'post' |
|
string
|
TRACKER_ID
|
'_form_' |
|
string
|
PROTECTOR_ID
|
'_token_' |
NAME_SEPARATOR
|
public
array
|
$onSubmit |
|
#
of function(Form $sender); Occurs when the form is submitted and successfully validated |
public
array
|
$onInvalidSubmit |
|
#
of function(Form $sender); Occurs when the form is submitted and not validated |
$currentGroup,
$onValidate,
$valid
|