Function __global->_helper_add_auto_key
Definitions
sources/database_helper.php
- Use an *AUTO key for a table that had some other key before.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $this_ref | object | No | No | required parameter | N/A | N/A | Link to the real database object |
| $table_name | ID_TEXT | No | No | required parameter | N/A | N/A | Table name |
| $field_name | ID_TEXT | No | No | required parameter | N/A | N/A | Field name for new key, must always be 'id' |
Preview
Code (PHP)
/**
* Use an *AUTO key for a table that had some other key before.
*
* @param object $this_ref Link to the real database object
* @param ID_TEXT $table_name Table name
* @param ID_TEXT $field_name Field name for new key, must always be 'id'
*/
function _helper_add_auto_key(object $this_ref, string $table_name, string $field_name)
* Use an *AUTO key for a table that had some other key before.
*
* @param object $this_ref Link to the real database object
* @param ID_TEXT $table_name Table name
* @param ID_TEXT $field_name Field name for new key, must always be 'id'
*/
function _helper_add_auto_key(object $this_ref, string $table_name, string $field_name)

