Function __global->table_to_portable_rows
Definitions
sources/resource_fs.php
- Transfer a table's contents to portable rows.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $table | string | No | No | required parameter | N/A | N/A | Table name |
| $fields_to_skip | array | No | No | [] | N/A | N/A | Fields to not include in the table dump. Any keys from $where_map will also be skipped, as these are obviously constant for all rows returned. |
| $where_map | array | No | No | [] | N/A | N/A | Extra WHERE constraints |
| $db | ?object | No | No | Null | N/A | N/A | Database connector to look up from (null: work out from table name) |
Returns
- Portable rows
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Transfer a table's contents to portable rows.
*
* @param string $table Table name
* @param array $fields_to_skip Fields to not include in the table dump. Any keys from $where_map will also be skipped, as these are obviously constant for all rows returned.
* @param array $where_map Extra WHERE constraints
* @param ?object $db Database connector to look up from (null: work out from table name)
* @return array Portable rows
*/
function table_to_portable_rows(string $table, array $fields_to_skip = [], array $where_map = [], ?object $db = null) : array
* Transfer a table's contents to portable rows.
*
* @param string $table Table name
* @param array $fields_to_skip Fields to not include in the table dump. Any keys from $where_map will also be skipped, as these are obviously constant for all rows returned.
* @param array $where_map Extra WHERE constraints
* @param ?object $db Database connector to look up from (null: work out from table name)
* @return array Portable rows
*/
function table_to_portable_rows(string $table, array $fields_to_skip = [], array $where_map = [], ?object $db = null) : array

