Collections functions
General functions
Render functions
Theme permission 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 26th June 2022 02:35 Europe/London time based on the source file dated 6th June 2022 10:25 Europe/London time.