Class Form
Creates, validates and renders HTML forms.
- Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent uses Nette\SmartObject
- 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
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
|
protected
array|null
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
boolean
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
public
|
|
public
string
|
|
public
array
|
_isCloning(),
createComponent(),
getComponent(),
getComponents(),
removeComponent(),
validateChildComponent()
|
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor()
|
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
getReflection()
|
string |
EQUAL
validator |
# ':equal' |
string |
IS_IN
validator |
|
string |
NOT_EQUAL
validator |
# ':notEqual' |
string |
IS_NOT_IN
validator |
|
string |
FILLED
validator |
# ':filled' |
string |
BLANK
validator |
# ':blank' |
string |
REQUIRED
validator |
|
string |
VALID
validator |
# ':valid' |
string |
SUBMITTED
validator |
# ':submitted' |
string |
MIN_LENGTH
validator |
# ':minLength' |
string |
MAX_LENGTH
validator |
# ':maxLength' |
string |
LENGTH
validator |
# ':length' |
string |
EMAIL
validator |
# ':email' |
string |
URL
validator |
# ':url' |
string |
PATTERN
validator |
# ':pattern' |
string |
PATTERN_ICASE
validator |
# ':patternCaseInsensitive' |
string |
INTEGER
validator |
# ':integer' |
string |
NUMERIC
validator |
# ':integer' |
string |
FLOAT
validator |
# ':float' |
string |
MIN
validator |
# ':min' |
string |
MAX
validator |
# ':max' |
string |
RANGE
validator |
# ':range' |
string |
COUNT
validator |
|
string |
MAX_FILE_SIZE
validator |
# ':fileSize' |
string |
MIME_TYPE
validator |
# ':mimeType' |
string |
IMAGE
validator |
# ':image' |
string |
MAX_POST_SIZE
validator |
# ':maxPostSize' |
string |
PROTECTION
|
|
string |
GET
method |
# 'get' |
string |
POST
method |
# 'post' |
integer |
DATA_TEXT
submitted data types |
# 1 |
integer |
DATA_LINE
submitted data types |
# 2 |
integer |
DATA_FILE
submitted data types |
# 3 |
integer |
DATA_KEYS
submitted data types |
# 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
callable[]
|
$onRender
function (Form $sender); Occurs before the form is rendered |
|
public
|
$httpRequest
used only by standalone form |
$currentGroup,
$onValidate
|
public
string
|
$action
|
public
string
|
$method
|
public read-only
array
|
$errors
|
public read-only
array
|
$ownErrors
|
public read-only
|
$elementPrototype
|
public read-only
|
$renderer
|
$controls,
$form,
$values
|
$components
|
$name,
$parent
|