Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

errorhandler()

Description

Simple class to use when required to obtain/build SQL (sub) statements from various functions.

@internal

final class PreparedStatementQuery {

@var string $sql SQL prepared (sub) statement with placeholders in place

public $sql;


@var array $parameters Bind parameters

public $parameters;


Create a new PreparedStatementQuery


public function __construct(string $sql = '', array $parameters = [])
{
$this->sql = $sql;
$this->parameters = $parameters;
}
}




Centralised error handler. Display friendly error messages.

Parameters

ColumnTypeDefaultDescription
$errno integer
$errstr string
$errfile string
$errline integer
$sql string SQL prepared (sub) statement with placeholders in place
$parameters array Bind parameters

Return

void

This article was last updated 19th March 2024 09:05 Europe/London time based on the source file dated 8th March 2024 15:10 Europe/London time.