Bitrix API

TmpTable

FinalYes

Class TmpTable Helps to store temporary locations data during locations map with external services.

Table of Contents

Methods

__construct()  : mixed
TmpTable constructor.
create()  : Result
drop()  : mixed
Drops table
getMaxId()  : int
getUnmappedLocations()  : Result
isExist()  : bool
markAllMapped()  : mixed
If we have mapped locations mark this in tmp table
markMapped()  : mixed
saveData()  : int

Methods

__construct()

TmpTable constructor.

public __construct(int $serviceId[, string $tableName = "" ]) : mixed
Parameters
$serviceId : int

External service id.

$tableName : string = ""
Tags
throws
ArgumentNullException

create()

public create(array<string|int, mixed> $data) : Result
Parameters
$data : array<string|int, mixed>
Tags
throws
ArgumentNullException
throws
ArgumentTypeException
Return values
Result

drop()

Drops table

public drop() : mixed

getMaxId()

public getMaxId() : int
Return values
int

Max row id.

getUnmappedLocations()

public getUnmappedLocations([int $startId = 0 ]) : Result
Parameters
$startId : int = 0

Start position.

Return values
Result

isExist()

public isExist() : bool
Return values
bool

markAllMapped()

If we have mapped locations mark this in tmp table

public markAllMapped() : mixed

markMapped()

public markMapped(int $locationId, string $xmlId) : mixed
Parameters
$locationId : int

Internal location id.

$xmlId : string

External location id.

Tags
throws
ArgumentNullException

saveData()

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

Data to save

Tags
throws
ArgumentNullException
throws
ArgumentTypeException
Return values
int

Quantity of saved rows.


        
On this page

Search results