Class Form
Web form adapted for Presenter.
-
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
-
Nette\Application\UI\Form
implements
Nette\Application\UI\ISignalReceiver
Methods summary
public
|
|
protected
|
|
public
Nette\Application\UI\Presenter |null
|
#
getPresenter( boolean $throw = true )
Returns the presenter where this component belongs to.
Returns the presenter where this component belongs to.
Parameters
- $throw
- exception if presenter doesn't exist?
Returns
|
protected
|
#
attached( Nette\ComponentModel\IComponent $presenter )
This method will be called when the component (or component's parent) becomes
attached to a monitored object. Do not call this method yourself.
This method will be called when the component (or component's parent) becomes
attached to a monitored object. Do not call this method yourself.
Parameters
Overrides
|
public
boolean
|
#
isAnchored( )
Tells if the form is anchored.
Tells if the form is anchored.
Returns
boolean bool
Overrides
|
protected
array|null
|
#
receiveHttpData( )
Internal: returns submitted HTTP data or null when form was not
submitted.
Internal: returns submitted HTTP data or null when form was not
submitted.
Returns
array|null array|null
Overrides
|
protected
|
|
public
|
#
signalReceived( string $signal )
This method is called by presenter.
This method is called by presenter.
Parameters
Implementation of
|
Methods inherited from Nette\Forms\Form
__toString(),
addError(),
addGroup(),
addProtection(),
cleanErrors(),
fireEvents(),
fireRenderEvents(),
getAction(),
getElementPrototype(),
getErrors(),
getForm(),
getGroup(),
getGroups(),
getHttpData(),
getMethod(),
getOwnErrors(),
getRenderer(),
getToggles(),
getTranslator(),
hasErrors(),
isMethod(),
isSubmitted(),
isSuccess(),
removeGroup(),
render(),
reset(),
setAction(),
setMethod(),
setRenderer(),
setSubmittedBy(),
setTranslator(),
validate(),
validateMaxPostSize()
|
Methods inherited from Nette\Forms\Container
__call(),
__clone(),
addButton(),
addCheckbox(),
addCheckboxList(),
addComponent(),
addContainer(),
addEmail(),
addHidden(),
addImage(),
addInteger(),
addMultiSelect(),
addMultiUpload(),
addPassword(),
addRadioList(),
addSelect(),
addSubmit(),
addText(),
addTextArea(),
addUpload(),
extensionMethod(),
getControls(),
getCurrentGroup(),
getValues(),
isValid(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
setCurrentGroup(),
setDefaults(),
setValues()
|
Constants inherited from Nette\Forms\Form
BLANK,
COUNT,
DATA_FILE,
DATA_KEYS,
DATA_LINE,
DATA_TEXT,
EMAIL,
EQUAL,
FILLED,
FLOAT,
GET,
IMAGE,
INTEGER,
IS_IN,
IS_NOT_IN,
LENGTH,
MAX,
MAX_FILE_SIZE,
MAX_LENGTH,
MAX_POST_SIZE,
MIME_TYPE,
MIN,
MIN_LENGTH,
NOT_EQUAL,
NUMERIC,
PATTERN,
PATTERN_ICASE,
POST,
PROTECTION,
PROTECTOR_ID,
RANGE,
REQUIRED,
SUBMITTED,
TRACKER_ID,
URL,
VALID
|
Properties summary
public
callable[]
|
$onAnchor
function (self $sender); Occurs when form is attached to presenter
function (self $sender); Occurs when form is attached to presenter
|
|