Beta version

class CustomFormHelper

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 = array())

No description

Details

at line 63
__construct(EntityManager $em, CustomForm $customForm)

CustomFormHelper constructor.

Parameters

EntityManager $em
CustomForm $customForm

at line 78
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

at line 129
FormInterface getFormFromAnswer(FormFactory $formFactory, CustomFormAnswer $answer = null, bool $forceExpanded = false, array $options = array())

Parameters

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

Return Value

FormInterface