Function Database_Static_xml->_read_schema
Definitions
sources/database/xml.php
- Find the schema for a table.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$db | array | No | No | required parameter | N/A | N/A | The database |
$table_name | string | No | No | required parameter | N/A | N/A | The table name |
$fail_ok | boolean | No | No | False | N/A | N/A | Whether to not output an error on some kind of run-time failure (parse errors and clear programming errors are always fatal) |
Returns
- The schema map (null: not found)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the schema for a table.
*
* @param array $db The database
* @param string $table_name The table name
* @param boolean $fail_ok Whether to not output an error on some kind of run-time failure (parse errors and clear programming errors are always fatal)
* @return ?array The schema map (null: not found)
*/
protected function _read_schema(array $db, string $table_name, bool $fail_ok = false) : ?array
* Find the schema for a table.
*
* @param array $db The database
* @param string $table_name The table name
* @param boolean $fail_ok Whether to not output an error on some kind of run-time failure (parse errors and clear programming errors are always fatal)
* @return ?array The schema map (null: not found)
*/
protected function _read_schema(array $db, string $table_name, bool $fail_ok = false) : ?array