Prepares and caches database statements.
Usually extended by a DataManager class.
package | dstruct_common |
---|
doStatement(string $statement, array $values) : object
Caches prepared statements via prepareStatement().
string
SQL statement
array
Values for SQL statement
object
Executed PDO::StatementprepareStatement(string $statement) : object
If previously prepared, returns the cached statement
handle.
This method is usually called by doStatement().
string
SQL statement to prepare
object
PDO::Statement$statements : array