Function __global->table_id_locking_end
Definitions
sources/lang.php
- End locking for inserting into a table. Used alongside table_id_locking_start.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $db | object | No | No | required parameter | N/A | N/A | Database connector to use |
| $id | ?integer | No | No | required parameter | N/A | N/A | ID number (null: just do normal auto-increment) |
| $lock | boolean | No | No | required parameter | N/A | N/A | Whether locking has happened |
| $table | string | No | No | translate | N/A | N/A | Translate table |
| $id_field | string | No | No | id | N/A | N/A | ID field |
Preview
Code (PHP)
/**
* End locking for inserting into a table. Used alongside table_id_locking_start.
*
* @param object $db Database connector to use
* @param ?integer $id ID number (null: just do normal auto-increment)
* @param boolean $lock Whether locking has happened
* @param string $table Translate table
* @param string $id_field ID field
*/
function table_id_locking_end(object $db, ?int $id, bool $lock, string $table = 'translate', string $id_field = 'id')
* End locking for inserting into a table. Used alongside table_id_locking_start.
*
* @param object $db Database connector to use
* @param ?integer $id ID number (null: just do normal auto-increment)
* @param boolean $lock Whether locking has happened
* @param string $table Translate table
* @param string $id_field ID field
*/
function table_id_locking_end(object $db, ?int $id, bool $lock, string $table = 'translate', string $id_field = 'id')

