FormHandler
Table of Contents
Constants
- EVENT_POSTFIX = 'Openlines'
- FORM_COMPONENT_NAME = 'bx-imopenlines-form'
Properties
- $errorCollection : ErrorCollection
Methods
- buildSentFormMessageForClient() : string
- Build message text about sending a form to chat for client side
- buildSentFormMessageForOperator() : string
- Build message text about sending a form to chat for operator side
- decodeConnectorName() : string
- Restore original connector name
- encodeConnectorName() : string
- Custom connector names can contain '_', which is reserved for CRM-forms personalization After form is filled we will replace symbols again
- onOpenlinesFormFill() : bool
- Event handler for 'crm::onSiteFormFillOpenlines' event (event is fired before CRM entities are created)
- onOpenlinesFormFilled() : bool
- Event handler for 'crm::onSiteFormFilledOpenlines' event (class entry point)
Constants
EVENT_POSTFIX
public
mixed
EVENT_POSTFIX
= 'Openlines'
FORM_COMPONENT_NAME
public
mixed
FORM_COMPONENT_NAME
= 'bx-imopenlines-form'
Properties
$errorCollection
public
ErrorCollection
$errorCollection
Methods
buildSentFormMessageForClient()
Build message text about sending a form to chat for client side
public
static buildSentFormMessageForClient(string $formLink) : string
Parameters
- $formLink : string
Return values
stringbuildSentFormMessageForOperator()
Build message text about sending a form to chat for operator side
public
static buildSentFormMessageForOperator(string $formName[, string|null $lang = null ]) : string
Parameters
- $formName : string
- $lang : string|null = null
Return values
stringdecodeConnectorName()
Restore original connector name
public
static decodeConnectorName(string $userCode) : string
Parameters
- $userCode : string
Return values
stringencodeConnectorName()
Custom connector names can contain '_', which is reserved for CRM-forms personalization After form is filled we will replace symbols again
public
static encodeConnectorName(string $userCode) : string
Parameters
- $userCode : string
Return values
stringonOpenlinesFormFill()
Event handler for 'crm::onSiteFormFillOpenlines' event (event is fired before CRM entities are created)
public
static onOpenlinesFormFill(Event $event) : bool
Parameters
- $event : Event
Tags
Return values
boolonOpenlinesFormFilled()
Event handler for 'crm::onSiteFormFilledOpenlines' event (class entry point)
public
static onOpenlinesFormFilled(Event $event) : bool
Parameters
- $event : Event