$options
$options : array
Database wrapper, provides a database API on top of PHP PDO for enhancing the API and dealing with error reporting and tracking.
executeFetchClass(string $query, array $params, string $class) : object
Execute a select-query with arguments and insert the results into a new object of the class.
| string | $query | the SQL statement |
| array | $params | the params array |
| string | $class | the class to create an object of and insert into |
with resultset
executeFetchInto(string $query, array $params, string $object = null) : object
Execute a select-query with arguments and insert the results into an existing object.
| string | $query | the SQL statement |
| array | $params | the params array |
| string | $object | the existing object to insert into |
with resultset
expandParamArray(string $query, array $params) : array
Support arrays in params, extract array items and add to $params and insert ? for each entry in the array.
| string | $query | as the query to prepare. |
| array | $params | the parameters that may contain arrays. |
with query and params.