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
create()
public
create(array<string|int, mixed> $data) : Result
Parameters
- $data : array<string|int, mixed>
Tags
Return values
Resultdrop()
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
ResultisExist()
public
isExist() : bool
Return values
boolmarkAllMapped()
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
saveData()
public
saveData(array<string|int, mixed> $data) : int
Parameters
- $data : array<string|int, mixed>
-
Data to save
Tags
Return values
int —Quantity of saved rows.