Function Database_Static_xml->_write_record
Definitions
sources/database/xml.php
- Write a record to an XML file.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$db | array | No | No | required parameter | N/A | N/A | Database connection |
$table_name | string | No | No | required parameter | N/A | N/A | The table name |
$guid | string | No | No | required parameter | N/A | N/A | The GUID |
$record | array | No | No | required parameter | N/A | N/A | The record map |
$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) |
$save_as_volatile | boolean | No | No | False | N/A | N/A | Whether we are saving as a 'volatile' file extension |
Preview
Code (PHP)
/**
* Write a record to an XML file.
*
* @param array $db Database connection
* @param string $table_name The table name
* @param string $guid The GUID
* @param array $record The record map
* @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)
* @param boolean $save_as_volatile Whether we are saving as a 'volatile' file extension
*/
protected function _write_record(array $db, string $table_name, string $guid, array $record, bool $fail_ok = false, bool $save_as_volatile = false)
* Write a record to an XML file.
*
* @param array $db Database connection
* @param string $table_name The table name
* @param string $guid The GUID
* @param array $record The record map
* @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)
* @param boolean $save_as_volatile Whether we are saving as a 'volatile' file extension
*/
protected function _write_record(array $db, string $table_name, string $guid, array $record, bool $fail_ok = false, bool $save_as_volatile = false)