См. определение в файле form.php строка 25
◆ clearCache()
Clears cache all sites with blocks.
- Возвращает
- void
См. определение в файле form.php строка 172
◆ createDefaultForm()
static createDefaultForm |
( |
| ) |
|
|
staticprotected |
Create form with default params
- Возвращает
- array - array with once item, fields equal getForms(). Or empty array if not created
См. определение в файле form.php строка 710
◆ createForm()
static createForm |
( |
array | $formData | ) |
|
|
staticprotected |
- Аргументы
-
- Возвращает
- int|null - id of created form or null if errors
См. определение в файле form.php строка 724
◆ getAttrs()
Gets attrs for form.
- Возвращает
- array
См. определение в файле form.php строка 512
◆ getCallbackForms()
static getCallbackForms |
( |
| ) |
|
|
static |
Find only callback forms. Return array of form arrays, or empty array if not found
- Возвращает
- array
См. определение в файле form.php строка 315
◆ getFormByBlock()
static getFormByBlock |
( |
int | $blockId | ) |
|
|
static |
Return CRM-form ID from block, if exists. Else return null;
- Аргументы
-
- Возвращает
- int|null
См. определение в файле form.php строка 663
◆ getFormById()
static getFormById |
( |
int | $id | ) |
|
|
static |
Find just one form by ID. Return array of form fields, or empty array if not found
- Возвращает
- array
См. определение в файле form.php строка 304
◆ getForms()
static getForms |
( |
bool | $force = false | ) |
|
|
static |
Gets web forms in system.
- Аргументы
-
bool | $force | - if true - get forms forcibly w/o cache |
- Возвращает
- array
См. определение в файле form.php строка 215
◆ getFormsByFilter()
static getFormsByFilter |
( |
array | $filter | ) |
|
|
staticprotected |
◆ getFormsForPortal()
static getFormsForPortal |
( |
array | $filter = [] | ) |
|
|
staticprotected |
◆ getFormsViaConnector()
static getFormsViaConnector |
( |
| ) |
|
|
staticprotected |
◆ getLandingFormBlocks()
static getLandingFormBlocks |
( |
| $landingIds | ) |
|
|
static |
- Аргументы
-
int | array | $landingIds | - int or [int] of landing IDs |
- Возвращает
- array of all block with CRM-forms at this page
- Исключения
-
Bitrix\Main\ArgumentException
- Исключения
-
Bitrix\Main\ObjectPropertyException
- Исключения
-
Bitrix\Main\SystemException
См. определение в файле form.php строка 633
◆ getOriginalFormDomain()
static getOriginalFormDomain |
( |
| ) |
|
|
static |
Get original domain for web-forms.
- Возвращает
- string
См. определение в файле form.php строка 969
◆ getSpecialFormsData()
static getSpecialFormsData |
( |
| ) |
|
|
staticprotected |
◆ isCrm()
Check if b24 or box portal
- Возвращает
- bool
См. определение в файле form.php строка 239
◆ prepareFormsToAttrs()
static prepareFormsToAttrs |
( |
array | $forms | ) |
|
|
staticprotected |
Move callback form to end.
- Аргументы
-
- Возвращает
- array
См. определение в файле form.php строка 596
◆ prepareFormsToPublication()
static prepareFormsToPublication |
( |
string | $content | ) |
|
|
static |
Replace form markers in block, put true scripts. Run on publication action
- Аргументы
-
string | $content | - content of block |
- Возвращает
- string - replaced content
См. определение в файле form.php строка 61
◆ prepareFormsToView()
static prepareFormsToView |
( |
string | $content | ) |
|
|
static |
Replace form markers in block, put true scripts. Run on view in public mode
- Аргументы
-
string | $content | - content of block |
- Возвращает
- string - replaced content
См. определение в файле form.php строка 72
◆ prepareManifest()
static prepareManifest |
( |
array | $manifest, |
|
|
Block | $block = null, |
|
|
array | $params = [] ) |
|
static |
Prepare manifest.
- Аргументы
-
array | $manifest | Block's manifest. |
Block | null | $block | Block instance. |
array | $params | Additional params. |
- Возвращает
- array
См. определение в файле form.php строка 369
◆ replaceFormMarkers()
static replaceFormMarkers |
( |
string | $content | ) |
|
|
staticprotected |
Replaces and returns all #crmForm-link to the popup codes or in inline forms For CP - every hit (cached), for SMN - on public
- Аргументы
-
string | $content | Some content. |
- Возвращает
- string
См. определение в файле form.php строка 87
◆ setFormIdParam()
static setFormIdParam |
( |
Block | $block, |
|
|
int | $formId ) |
|
staticprotected |
Encapsulates the form params save logic
- Аргументы
-
Block | $block | |
int | $formId | - from webform table |
См. определение в файле form.php строка 693
◆ setFormIdToBlock()
static setFormIdToBlock |
( |
int | $blockId, |
|
|
int | $formId ) |
|
static |
Save form params in block for current form
- Аргументы
-
int | $blockId | - from landing block table |
int | $formId | - from webform table |
- Возвращает
- bool - true if success, false if errors
См. определение в файле form.php строка 679
◆ setSpecialFormToBlock()
static setSpecialFormToBlock |
( |
Block | $block, |
|
|
string | $xmlId ) |
|
static |
◆ updateBlockToEmbed()
static updateBlockToEmbed |
( |
Block | $block | ) |
|
|
staticprotected |
Migrate from old form to new embed, adjust block params, remove old style nodes
- Аргументы
-
См. определение в файле form.php строка 902
◆ updateLandingToEmbedForms()
static updateLandingToEmbedForms |
( |
int | $landingId | ) |
|
|
static |
Find old forms blocks and update to embed format
- Аргументы
-
См. определение в файле form.php строка 878
◆ ATTR_FORM_EMBED
const ATTR_FORM_EMBED = 'data-b24form-embed' |
|
protected |
◆ ATTR_FORM_FROM_CONNECTOR
const ATTR_FORM_FROM_CONNECTOR = 'data-b24form-connector' |
|
protected |
◆ ATTR_FORM_OLD_DOMAIN
const ATTR_FORM_OLD_DOMAIN = 'data-b24form-original-domain' |
|
protected |
◆ ATTR_FORM_OLD_HEADER
const ATTR_FORM_OLD_HEADER = 'data-b24form-show-header' |
|
protected |
◆ ATTR_FORM_PARAMS
const ATTR_FORM_PARAMS = 'data-b24form' |
|
protected |
◆ ATTR_FORM_STYLE
const ATTR_FORM_STYLE = 'data-b24form-design' |
|
protected |
◆ ATTR_FORM_USE_STYLE
const ATTR_FORM_USE_STYLE = 'data-b24form-use-style' |
|
protected |
◆ AVAILABLE_FORM_FIELDS
const AVAILABLE_FORM_FIELDS |
|
protected |
Инициализатор= [
'ID',
'NAME',
'SECURITY_CODE',
'IS_CALLBACK_FORM',
'ACTIVE',
'XML_ID',
]
См. определение в файле form.php строка 43
◆ INLINE_MARKER_PREFIX
const INLINE_MARKER_PREFIX = '#crmFormInline' |
◆ POPUP_MARKER_PREFIX
const POPUP_MARKER_PREFIX = '#crmFormPopup' |
◆ REGEXP_FORM_ID_INLINE
const REGEXP_FORM_ID_INLINE = '/data-b24form=["\']#crmFormInline(?<id>[\d]+)["\']/i' |
|
protected |
◆ REGEXP_FORM_STYLE
const REGEXP_FORM_STYLE = '/data-b24form-design *= *[\'"](\{.+\})[\'"]/i' |
|
protected |
◆ SELECTOR_FORM_NODE
const SELECTOR_FORM_NODE = '.bitrix24forms' |
|
protected |
◆ SELECTOR_OLD_STYLE_NODE
const SELECTOR_OLD_STYLE_NODE = '.landing-block-form-styles' |
|
protected |
◆ STYLE_SETTING
const STYLE_SETTING = 'crm-form' |
|
protected |