Function DatabaseConnector->__construct
Definitions
sources/database.php
- Construct a database driver from connection parameters.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$db_name | string | required parameter | N/A | N/A | The database name |
$db_host | string | required parameter | N/A | N/A | The database server |
$db_user | string | required parameter | N/A | N/A | The connection username |
$db_password | string | required parameter | N/A | N/A | The connection password |
$table_prefix | string | required parameter | N/A | N/A | The table prefix |
$fail_ok | boolean | False | N/A | N/A | Whether to on error echo an error and return with a null, rather than giving a critical error |
$static | ?object | Null | N/A | N/A | Static call object (null: use global static call object) |