Function __global->table_from_portable_rows
Definitions
sources/resource_fs.php
- Transfer portable rows to a table.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $table | string | No | No | required parameter | N/A | N/A | Table name |
| $rows | array | No | No | required parameter | N/A | N/A | Portable rows |
| $extra_field_data | array | No | No | required parameter | N/A | N/A | Extra data to add to each row |
| $replace_mode | integer | No | No | required parameter | N/A | N/A | Whether to fully replace the current table contents |
| $db | ?object | No | No | Null | N/A | N/A | Database connector to look up from (null: work out from table name) |
Returns
- Success status
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Transfer portable rows to a table.
*
* @param string $table Table name
* @param array $rows Portable rows
* @param array $extra_field_data Extra data to add to each row
* @param integer $replace_mode Whether to fully replace the current table contents
* @param ?object $db Database connector to look up from (null: work out from table name)
* @return boolean Success status
*/
function table_from_portable_rows(string $table, array $rows, array $extra_field_data, int $replace_mode, ?object $db = null) : bool
* Transfer portable rows to a table.
*
* @param string $table Table name
* @param array $rows Portable rows
* @param array $extra_field_data Extra data to add to each row
* @param integer $replace_mode Whether to fully replace the current table contents
* @param ?object $db Database connector to look up from (null: work out from table name)
* @return boolean Success status
*/
function table_from_portable_rows(string $table, array $rows, array $extra_field_data, int $replace_mode, ?object $db = null) : bool

