Function Database_Static_xml->_write_records

Definitions

sources/database/xml.php

  • Write in all the records to a table.
  • 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
$records array No No required parameter N/A N/A The list of record maps
$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)

Preview

Code (PHP)

/**
 * Write in all the records to a table.
 *
 * @param  array $db Database connection
 * @param  string $table_name The table name
 * @param  array $records The list of record maps
 * @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)
 */

protected function _write_records(array $db, string $table_name, array $records, bool $fail_ok = false)