Class Form
Creates, validates and renders HTML forms.
- Nette\Object
- Nette\Component implements Nette\IComponent
- Nette\ComponentContainer implements Nette\IComponentContainer
- Nette\Forms\FormContainer implements ArrayAccess, Nette\Forms\INamingContainer
- Nette\Forms\Form
Direct known subclasses
Nette\Application\AppForm
Namespace: 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
|
|
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
|