Prepares and caches database statements.

Usually extended by a DataManager class.

package dstruct_common

 Methods

Prepares and executes an SQL statement.

doStatement(string $statement, array $values) : object
Static

Caches prepared statements via prepareStatement().

Parameters

$statement

string

SQL statement

$values

array

Values for SQL statement

Returns

objectExecuted PDO::Statement

Prepare an SQL statement and return the handle.

prepareStatement(string $statement) : object
Static

If previously prepared, returns the cached statement handle.
This method is usually called by doStatement().

Parameters

$statement

string

SQL statement to prepare

Returns

objectPDO::Statement

 Properties

 

$statements : array