EformsHandler

author Lisa Tassone
version 2014-10-29 Custom incoming API handler for Eforms Form submissions To handle a single form submission Process: Eforms to send through one form at a time. Enterprise to save that form to the database to process later via cron. Cron to trigger (getEformsToProcess.php) on enterprise to read database table and then process those forms. Will respond to eForms platform with success or fail.

 Methods

EformsReceive

Receive(array $eformData) : array
Static

This function receives form details from the eForms platform for forms that require integration

Parameters

$eformData

array

the payload.

Returns

array

EformsRetrieveCustomFields

RetrieveCustomFields() : array
Static

This function retrieves all custom fields to a specific company id

Returns

array

EformsRetrieveJob

RetrieveJob(mixed $ProjectNo) : array
Static

This function retrieves a quote with a specific number

Parameters

$ProjectNo

mixed

The quote Number to retrieve

Returns

array

EformsRetrieveProject

RetrieveProject(mixed $Quote, int $ProjectNo) : array
Static

This function retrieves a quote with a specific number

uses \QuoteHandler::RetrieveList()

Parameters

$Quote

mixed

whether the project is a quote or a job. 1 = quote, 0 = job.

$ProjectNo

int

The quote Number to retrieve

Returns

array

EformsRetrieveQuote

RetrieveQuote(mixed $ProjectNo) : array
Static

This function retrieves a quote with a specific number

Parameters

$ProjectNo

mixed

The quote Number to retrieve

Returns

array

EformsShowQueue

ShowQueue(int $eformCompanyId) : array
Static

This function receives forms awaiting processing

Parameters

$eformCompanyId

int

Returns

array