Function Database_Static_xml->_bad_query
Definitions
sources/database/xml.php
- Give out an error message and die, when a query fails.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$query | string | No | No | required parameter | N/A | N/A | The query that failed |
$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) |
$error | ?string | No | No | Null | N/A | N/A | Error message (null: none) |
Returns
- Always returns null (null: error)
- Type: ?mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Give out an error message and die, when a query fails.
*
* @param string $query The query that failed
* @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 $error Error message (null: none)
* @return ?mixed Always returns null (null: error)
*/
protected function _bad_query(string $query, bool $fail_ok = false, ?string $error = null)
* Give out an error message and die, when a query fails.
*
* @param string $query The query that failed
* @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 $error Error message (null: none)
* @return ?mixed Always returns null (null: error)
*/
protected function _bad_query(string $query, bool $fail_ok = false, ?string $error = null)