$config
$config : array<mixed,>
Namespaced exception.
getConfig(string $key, string $default = null) : mixed
Helper function for reading values from the configuration and appy default values where configuration item is missing.
| string | $key | matching a key in the config array. |
| string | $default | value returned when config item is not found. |
or null if key does not exists.
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.