Bitrix API

Form extends BaseApiObject

AbstractYes

Table of Contents

Constants

FIELD_MAP  = []
TYPE_CODE  = ''
URL_FORM_LIST  = ''
USE_GROUP_AUTH  = false

Methods

__construct()  : mixed
Form constructor.
add()  : Response
Add.
convertField()  : array<string|int, mixed>
Convert field.
convertFields()  : array<string|int, mixed>
Convert fields.
create()  : static
getAccountId()  : string|null
getForm()  : FormResponse
getGroupAuthAdapter()  : AuthAdapter|null
Get group auth adapter.
getList()  : FormResponse
Get list.
getPrivacyPolicyUrl()  : string
Get privacy policy url.
getRegisteredGroups()  : array<string|int, string>
Get registered groups.
getRequest()  : Request
getResult()  : Result
Get result.
getUrlFormList()  : string
Get form list url.
isGroupAuthUsed()  : bool
Return true if group auth used.
isSupportAccount()  : bool
Is account supported.
loadLeads()  : Result
normalizeListRow()  : mixed
register()  : Response
Register WebHook
registerGroup()  : bool
Register group.
setAccountId()  : self
Set account id.
setRequest()  : mixed
setService()  : mixed
unlink()  : bool
Unlink.
unregisterForm()  : bool
unregisterForms()  : mixed
unRegisterGroup()  : bool
Unregister group.

Constants

FIELD_MAP

public mixed FIELD_MAP = []

URL_FORM_LIST

public mixed URL_FORM_LIST = ''

USE_GROUP_AUTH

public mixed USE_GROUP_AUTH = false

Methods

__construct()

Form constructor.

public __construct([string|null $accountId = null ]) : mixed
Parameters
$accountId : string|null = null

Account ID.

add()

Add.

public abstract add(array<string|int, mixed> $data) : Response
Parameters
$data : array<string|int, mixed>

Data.

Return values
Response

convertField()

Convert field.

public static convertField(Field $field) : array<string|int, mixed>
Parameters
$field : Field

Field.

Return values
array<string|int, mixed>

convertFields()

Convert fields.

public static convertFields(array<string|int, Field$fields) : array<string|int, mixed>
Parameters
$fields : array<string|int, Field>

Fields.

Return values
array<string|int, mixed>

create()

public static create(mixed $type[, null $parameters = null ][, IService|null $service = null ]) : static
Parameters
$type : mixed
$parameters : null = null
$service : IService|null = null
Return values
static

getAccountId()

public getAccountId() : string|null
Return values
string|null

getPrivacyPolicyUrl()

Get privacy policy url.

public static getPrivacyPolicyUrl() : string
Return values
string

getRegisteredGroups()

Get registered groups.

public getRegisteredGroups() : array<string|int, string>
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, string>

getUrlFormList()

Get form list url.

public static getUrlFormList() : string
Return values
string

isGroupAuthUsed()

Return true if group auth used.

public static isGroupAuthUsed() : bool
Return values
bool

isSupportAccount()

Is account supported.

public static isSupportAccount() : bool
Return values
bool

loadLeads()

public loadLeads(mixed $formId) : Result
Parameters
$formId : mixed
Return values
Result

normalizeListRow()

public static normalizeListRow(array<string|int, mixed> $row) : mixed
Parameters
$row : array<string|int, mixed>

register()

Register WebHook

public abstract register(mixed $formId) : Response
Parameters
$formId : mixed
Return values
Response

registerGroup()

Register group.

public registerGroup(string $groupId) : bool
Parameters
$groupId : string

Group ID.

Return values
bool

setAccountId()

Set account id.

public setAccountId(string $accountId) : self
Parameters
$accountId : string

Account ID.

Return values
self

Unlink.

public abstract unlink(string $id) : bool
Parameters
$id : string

.

Return values
bool

unregisterForm()

public unregisterForm(mixed $adsFormId) : bool
Parameters
$adsFormId : mixed
Return values
bool

unregisterForms()

public unregisterForms() : mixed

unRegisterGroup()

Unregister group.

public unRegisterGroup(string $groupId) : bool
Parameters
$groupId : string

Group ID.

Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
bool

        
On this page

Search results