Form
class Form extends Form implements SignalReceiver
Web form adapted for Presenter.
Properties
$onAnchor | |||
protected bool | $crossOrigin |
Methods
Application form constructor.
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|null $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 69
final Presenter|null
getPresenter()
Returns the presenter where this component belongs to.
at line 83
final Presenter|null
getPresenterIfExists()
Returns the presenter where this component belongs to.
at line 90
bool
hasPresenter()
deprecated
deprecated
No description
at line 99
bool
isAnchored()
Tells if the form is anchored.
at line 108
void
allowCrossOrigin()
Disables CSRF protection using a SameSite cookie.
at line 115
void
disableSameSiteProtection()
deprecated
deprecated
No description
at line 124
protected array|null
receiveHttpData()
Internal: returns submitted HTTP data or null when form was not submitted.
at line 142
protected
beforeRender()
No description
at line 159
void
signalReceived(string $signal)
This method is called by presenter.