Class Form
Creates, validates and renders HTML forms.
- Nette\Object
- Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent
- Nette\ComponentModel\Container implements Nette\ComponentModel\IContainer
- Nette\Forms\Container implements ArrayAccess
- Nette\Forms\Form implements Nette\Utils\IHtmlString
Direct known subclasses
Nette\Application\UI\Form
public
|
|
protected
|
|
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. |
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
mixed
|
|
public
|
|
protected
array|null
|
|
public
|
|
public
|
|
public
array
|
|
public
boolean
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
array
|
createComponent(),
getComponent(),
getComponents(),
removeComponent(),
validateChildComponent()
|
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
setParent()
|
string |
EQUAL
|
':equal' |
#
validator |
string |
IS_IN
|
|
#
validator |
string |
NOT_EQUAL
|
':notEqual' |
#
validator |
string |
FILLED
|
':filled' |
#
validator |
string |
BLANK
|
':blank' |
#
validator |
string |
REQUIRED
|
|
#
validator |
string |
VALID
|
':valid' |
#
validator |
string |
PROTECTION
|
|
|
string |
SUBMITTED
|
':submitted' |
|
string |
MIN_LENGTH
|
':minLength' |
|
string |
MAX_LENGTH
|
':maxLength' |
|
string |
LENGTH
|
':length' |
|
string |
EMAIL
|
':email' |
|
string |
URL
|
':url' |
|
string |
PATTERN
|
':pattern' |
|
string |
INTEGER
|
':integer' |
|
string |
NUMERIC
|
':integer' |
|
string |
FLOAT
|
':float' |
|
string |
MIN
|
':min' |
|
string |
MAX
|
':max' |
|
string |
RANGE
|
':range' |
|
string |
COUNT
|
|
|
string |
MAX_FILE_SIZE
|
':fileSize' |
|
string |
MIME_TYPE
|
':mimeType' |
|
string |
IMAGE
|
':image' |
|
string |
MAX_POST_SIZE
|
':maxPostSize' |
|
string |
GET
|
'get' |
#
method |
string |
POST
|
'post' |
#
method |
integer |
DATA_TEXT
|
1 |
#
submitted data types |
integer |
DATA_LINE
|
2 |
|
integer |
DATA_FILE
|
3 |
|
integer |
DATA_KEYS
|
8 |
|
string |
TRACKER_ID
|
'_form_' |
|
string |
PROTECTOR_ID
|
'_token_' |
NAME_SEPARATOR
|
public
callable[]
|
$onSuccess |
|
#
function (Form $sender); Occurs when the form is submitted and successfully validated |
public
callable[]
|
$onError |
|
#
function (Form $sender); Occurs when the form is submitted and is not valid |
public
callable[]
|
$onSubmit |
|
#
function (Form $sender); Occurs when the form is submitted |
public
|
$httpRequest |
|
#
used only by standalone form |
$currentGroup,
$onValidate
|
public read-only
array
|
$errors | |
public read-only
|
$elementPrototype |
$controls,
$form,
$values
|
$components
|
$name,
$parent
|
$reflection
|