UNB Components Code Reference

UnbDatabase::InternalExecute method

Actually executes an SQL query.

private function UnbDatabase::InternalExecute ($sql, $parameters);

Parameters

sql

(string) SQL statement
(PDOStatement) Already prepared statement

parameters

(array) Parameters to be used in this SQL statement, null if no parameters are used. This can only be (an array of) scalar values, UNB's objects are not allowed!

Return value

The PDOStatement object to be used for further data retrieval.

Exceptions thrown

InvalidArgumentException 

On invalid argument type.

BadMethodCallException 

If the database is not opened.

UnbDatabaseException 

If the statement could not be prepared or executed.

Member of class: UnbDatabase

Implementation file: database.class.php, line 732

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.