DB interface for the framework and modules
| Methods | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
public
static
|
build_dsn(): string
Build a DSN to connect to the db with
Build a DSN to connect to the db with |
# | ||||||||||
public
static
|
execute(object|false $dbh, string $sql, array $args, bool $type = false, bool $all = false): boolean|integer|array
Parameters
|
# | ||||||||||
public
static
|
connect(object $site_config): object|false
Connect to a DB server
Connect to a DB server Parameters
Returnsdatabase connection on success |
# | ||||||||||
| Properties | |||
|---|---|---|---|
public
static
|
|
$dbh = []
|
# |