class Form extends Form implements ISignalReceiver

Web form adapted for Presenter.

Properties

callable[]&(callable(Form $onAnchor

Methods

__construct(IContainer $parent = null, string $name = null)

Form constructor.

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

Presenter|null
getPresenter()

Returns the presenter where this component belongs to.

Presenter|null
getPresenterIfExists()

Returns the presenter where this component belongs to.

bool
hasPresenter() deprecated

No description

bool
isAnchored()

Tells if the form is anchored.

void
disableSameSiteProtection()

Disables CSRF protection using a SameSite cookie.

array|null
receiveHttpData()

Internal: returns submitted HTTP data or null when form was not submitted.

beforeRender()

No description

void
signalReceived(string $signal)

No description

Details

at line 30
__construct(IContainer $parent = null, string $name = null)

Form constructor.

Parameters

IContainer $parent
string $name

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

Parameters

IContainer $parent

Return Value

void

Exceptions

InvalidStateException

at line 68
final Presenter|null getPresenter()

Returns the presenter where this component belongs to.

Return Value

Presenter|null

at line 81
final Presenter|null getPresenterIfExists()

Returns the presenter where this component belongs to.

Return Value

Presenter|null

at line 88
bool hasPresenter() deprecated

deprecated

Return Value

bool

at line 97
bool isAnchored()

Tells if the form is anchored.

Return Value

bool

at line 106
void disableSameSiteProtection()

Disables CSRF protection using a SameSite cookie.

Return Value

void

at line 115
protected array|null receiveHttpData()

Internal: returns submitted HTTP data or null when form was not submitted.

Return Value

array|null

at line 135
protected beforeRender()

at line 152
void signalReceived(string $signal)

Parameters

string $signal

Return Value

void