Function Database_Static_xml->_key_conflict_check
Definitions
sources/database/xml.php
- Check to see if there is a key conflict problem.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
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 |
$schema | array | No | No | required parameter | N/A | N/A | The schema |
$record | array | No | No | required parameter | N/A | N/A | The record |
$query | string | No | No | required parameter | N/A | N/A | Query that was executed |
$fail_ok | boolean | No | No | required parameter | 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) |
$existing_identity | ?string | No | No | Null | N/A | N/A | The GUID representing what we have now (so we don't think we're conflicting with ourself) (null: not yet added) |
Returns
- Whether there was a conflict
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Check to see if there is a key conflict problem.
*
* @param array $db Database connection
* @param string $table_name The table name
* @param array $schema The schema
* @param array $record The record
* @param string $query Query that was executed
* @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 ?string $existing_identity The GUID representing what we have now (so we don't think we're conflicting with ourself) (null: not yet added)
* @return boolean Whether there was a conflict
*/
protected function _key_conflict_check(array $db, string $table_name, array $schema, array $record, string $query, bool $fail_ok, ?string $existing_identity = null) : bool
* Check to see if there is a key conflict problem.
*
* @param array $db Database connection
* @param string $table_name The table name
* @param array $schema The schema
* @param array $record The record
* @param string $query Query that was executed
* @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 ?string $existing_identity The GUID representing what we have now (so we don't think we're conflicting with ourself) (null: not yet added)
* @return boolean Whether there was a conflict
*/
protected function _key_conflict_check(array $db, string $table_name, array $schema, array $record, string $query, bool $fail_ok, ?string $existing_identity = null) : bool