Bitrix API

Entity

Class Entity

Table of Contents

Methods

copyTrace()  : void
Copy trace from entity to entity.
deleteTrace()  : mixed
getPaths()  : array<string|int, mixed>
Get paths.
onAfterAdd()  : void
Event handler of after entity adding.
onLocalShopChannelSaved()  : mixed
onRestAfterAdd()  : void
Event handler of entity adding by REST .
onRestAfterUpdate()  : void
Event handler of entity updating by REST .
onSaleOrderSaved()  : mixed
rebindTrace()  : void
Unbind tracing data from old entity and bind them to new entity.

Methods

copyTrace()

Copy trace from entity to entity.

public static copyTrace(int $fromEntityTypeId, int $fromEntityId, int $toEntityTypeId, int $toEntityId) : void
Parameters
$fromEntityTypeId : int

From entity type ID.

$fromEntityId : int

From entity ID.

$toEntityTypeId : int

To entity type ID.

$toEntityId : int

To entity ID.

deleteTrace()

public static deleteTrace(mixed $entityTypeId, mixed $entityId) : mixed
Parameters
$entityTypeId : mixed
$entityId : mixed

getPaths()

Get paths.

public static getPaths(int $entityTypeId, int $entityId[, int $limit = 10 ]) : array<string|int, mixed>
Parameters
$entityTypeId : int

Entity type ID.

$entityId : int

Entity ID.

$limit : int = 10

Limit.

Return values
array<string|int, mixed>

onAfterAdd()

Event handler of after entity adding.

public static onAfterAdd(int $entityTypeId, int $entityId, array<string|int, mixed> $fields) : void
Parameters
$entityTypeId : int

Entity Type ID.

$entityId : int

Entity ID.

$fields : array<string|int, mixed>

New Entity Type ID.

onLocalShopChannelSaved()

public static onLocalShopChannelSaved() : mixed

onRestAfterAdd()

Event handler of entity adding by REST .

public static onRestAfterAdd(int $entityTypeId, int $entityId, array<string|int, mixed> $fields) : void
Parameters
$entityTypeId : int

Entity Type ID.

$entityId : int

Entity ID.

$fields : array<string|int, mixed>

New Entity Type ID.

onRestAfterUpdate()

Event handler of entity updating by REST .

public static onRestAfterUpdate(int $entityTypeId, int $entityId, array<string|int, mixed> $fields) : void
Parameters
$entityTypeId : int

Entity Type ID.

$entityId : int

Entity ID.

$fields : array<string|int, mixed>

New Entity Type ID.

onSaleOrderSaved()

public static onSaleOrderSaved(Event $event) : mixed
Parameters
$event : Event

rebindTrace()

Unbind tracing data from old entity and bind them to new entity.

public static rebindTrace(int $oldEntityTypeID, int $oldEntityID, int $newEntityTypeID, int $newEntityID) : void
Parameters
$oldEntityTypeID : int

Old Entity Type ID.

$oldEntityID : int

Old Entity ID.

$newEntityTypeID : int

New Entity Type ID.

$newEntityID : int

New Entity ID.

Tags
throws
ArgumentException
throws
SqlQueryException

        
On this page

Search results