class CustomFormHelper (View source)

Class CustomFormHelper

Constants

ARRAY_SEPARATOR

Methods

__construct(EntityManager $em, CustomForm $customForm)

CustomFormHelper constructor.

parseAnswerFormData(FormInterface $form, CustomFormAnswer $answer = null, string $ipAddress = "")

Create or update custom-form answer and its attributes from a submitted form data.

FormInterface
getFormFromAnswer(FormFactory $formFactory, CustomFormAnswer $answer = null, bool $forceExpanded = false, array $options = [])

No description

Details

__construct(EntityManager $em, CustomForm $customForm)

CustomFormHelper constructor.

Parameters

EntityManager $em
CustomForm $customForm

CustomFormAnswer parseAnswerFormData(FormInterface $form, CustomFormAnswer $answer = null, string $ipAddress = "")

Create or update custom-form answer and its attributes from a submitted form data.

Parameters

FormInterface $form
CustomFormAnswer $answer
string $ipAddress

Return Value

CustomFormAnswer

FormInterface getFormFromAnswer(FormFactory $formFactory, CustomFormAnswer $answer = null, bool $forceExpanded = false, array $options = [])

Parameters

FormFactory $formFactory
CustomFormAnswer $answer
bool $forceExpanded
array $options Options passed to final form

Return Value

FormInterface