Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 17th November 2024 15:35 Europe/London time based on the source file dated 18th September 2024 16:35 Europe/London time.