Function Database_Static_xml->_create_table
Definitions
sources/database/xml.php
- Create a new table.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$table_name | ID_TEXT | No | No | required parameter | N/A | N/A | The table name |
$fields | array | No | No | required parameter | N/A | N/A | A map of field names to software field types (with *#? encodings) |
$db | array | No | No | required parameter | N/A | N/A | The DB connection to make on |
$if_not_exists | boolean | No | No | False | N/A | N/A | Whether to only do it if it does not currently exist |
Preview
Code (PHP)
/**
* Create a new table.
*
* @param ID_TEXT $table_name The table name
* @param array $fields A map of field names to software field types (with *#? encodings)
* @param array $db The DB connection to make on
* @param boolean $if_not_exists Whether to only do it if it does not currently exist
*/
protected function _create_table(string $table_name, array $fields, array $db, bool $if_not_exists = false)
* Create a new table.
*
* @param ID_TEXT $table_name The table name
* @param array $fields A map of field names to software field types (with *#? encodings)
* @param array $db The DB connection to make on
* @param boolean $if_not_exists Whether to only do it if it does not currently exist
*/
protected function _create_table(string $table_name, array $fields, array $db, bool $if_not_exists = false)