FormTrait
Table of Contents
Methods
- onAnchor() : void
- onSubmit() : void
- onSuccess() : void
- createComponentForm() : Form
- getPollPlaceComponent() : PollPlace|null
- updateVotesInAnswer() : void
Methods
onAnchor()
public
onAnchor(Form $form) : void
Parameters
- $form : Form
onSubmit()
public
onSubmit(Form $form) : void
Parameters
- $form : Form
onSuccess()
public
onSuccess(Form $form, ArrayHash $values) : void
Parameters
- $form : Form
- $values : ArrayHash
createComponentForm()
protected
createComponentForm() : Form
Return values
FormgetPollPlaceComponent()
private
getPollPlaceComponent() : PollPlace|null
Return values
PollPlace|nullupdateVotesInAnswer()
private
updateVotesInAnswer(int $answerId) : void
Parameters
- $answerId : int