Bitrix API

Form extends BaseTable

Table of Contents

Constants

REQUISITES_CODE  = 'REQUISITES'

Properties

$internalClass  : string
Internal class.

Methods

add()  : AddResult
Creates new record and return it new result.
callback()  : void
Registers calllback for internal table.
create()  : int|null
Creates new form for references fields.
delete()  : Result
Deletes exists record.
getCode()  : array<string|int, mixed>|null
Returns form html code for pai document+member.
getList()  : Result
Returns records of table.
getMap()  : array<string|int, mixed>
Returns table's map.
onSiteFormFillSign()  : void
Calls when form was send.
remove()  : bool
Removes CRM Form by id.
setData()  : bool
Updates entity data.
update()  : Result
Updates exists record.

Constants

REQUISITES_CODE

public mixed REQUISITES_CODE = 'REQUISITES'

Properties

$internalClass

Internal class.

public static string $internalClass = 'FormTable'

Methods

add()

Creates new record and return it new result.

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

Fields array.

Return values
AddResult

callback()

Registers calllback for internal table.

public static callback(string $code, callable $callback) : void
Parameters
$code : string

Type of callback.

$callback : callable

Callback.

create()

Creates new form for references fields.

public static create(int $blankId, int $memberPart, array<string|int, mixed> $fieldsCodes[, int $presetId = 0 ]) : int|null
Parameters
$blankId : int

Blank id.

$memberPart : int

Member part index.

$fieldsCodes : array<string|int, mixed>

Array of references codes - fields new form.

$presetId : int = 0
Return values
int|null

delete()

Deletes exists record.

public static delete(int $id) : Result
Parameters
$id : int

Record key.

Return values
Result

getCode()

Returns form html code for pai document+member.

public static getCode(Document $document, Member $member) : array<string|int, mixed>|null
Parameters
$document : Document

Document instance.

$member : Member

Member instance.

Return values
array<string|int, mixed>|null

getList()

Returns records of table.

public static getList([array<string|int, mixed> $params = [] ]) : Result
Parameters
$params : array<string|int, mixed> = []

Params array like ORM style.

Return values
Result

getMap()

Returns table's map.

public static getMap() : array<string|int, mixed>
Return values
array<string|int, mixed>

onSiteFormFillSign()

Calls when form was send.

public static onSiteFormFillSign(Event $event) : void
Parameters
$event : Event

Event instance.

remove()

Removes CRM Form by id.

public static remove(int $formId) : bool
Parameters
$formId : int

Form id.

Return values
bool

setData()

Updates entity data.

public setData(array<string|int, mixed> $data) : bool
Parameters
$data : array<string|int, mixed>

New blank data.

Return values
bool

update()

Updates exists record.

public static update(int $id[, array<string|int, mixed> $fields = [] ]) : Result
Parameters
$id : int

Record key.

$fields : array<string|int, mixed> = []

Fields array.

Return values
Result

        
On this page

Search results