Form
class Form extends Form implements ISignalReceiver
Web form adapted for Presenter.
Properties
$onAnchor | |||
protected bool | $crossOrigin |
Methods
Is called by a component when it is about to be set new parent. Descendant can override this method to disallow a parent change by throwing an Nette\InvalidStateException
Returns the presenter where this component belongs to.
Returns the presenter where this component belongs to.
Tells if the form is anchored.
Disables CSRF protection using a SameSite cookie.
Internal: returns submitted HTTP data or null when form was not submitted.
No description
This method is called by presenter.
Details
at line 30
__construct(IContainer $parent = null, string $name = null)
Application form constructor.
at line 39
protected void
validateParent(IContainer $parent)
Is called by a component when it is about to be set new parent. Descendant can override this method to disallow a parent change by throwing an Nette\InvalidStateException
at line 68
final Presenter|null
getPresenter()
Returns the presenter where this component belongs to.
at line 81
final Presenter|null
getPresenterIfExists()
Returns the presenter where this component belongs to.
at line 88
bool
hasPresenter()
deprecated
deprecated
No description
at line 97
bool
isAnchored()
Tells if the form is anchored.
at line 106
void
allowCrossOrigin()
Disables CSRF protection using a SameSite cookie.
at line 113
void
disableSameSiteProtection()
deprecated
deprecated
No description
at line 122
protected array|null
receiveHttpData()
Internal: returns submitted HTTP data or null when form was not submitted.
at line 140
protected
beforeRender()
No description
at line 157
void
signalReceived(string $signal)
This method is called by presenter.