Function __global->table_id_locking_start
Definitions
sources/lang.php
- Start locking and get faux auto-increment ID for inserting into a table which uses simulated auto-increments due to its need for additional compounded keys. Used alongside table_id_locking_end.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$db | object | required parameter | N/A | N/A | Database connector to use |
$id | ?integer | required parameter | N/A | N/A | ID number (returned by reference) (null: just do normal auto-increment) |
$lock | boolean | required parameter | N/A | N/A | Whether locking has happened (returned by reference) |
$table | string | translate | N/A | N/A | Translate table |
$id_field | string | id | N/A | N/A | ID field |