Method to get a single instance of the database per connection
public static getInstance ( string $alias = 'standard', string $type = null, string $user = null, string $pass = null, array $option = null ) : object | ||
$alias | string | Pseudonym that will be used as a pointer to an instance of established connection |
$type | string | Connection type if using "Initial Setup" or "Full DSN" |
$user | string | Username of the database |
$pass | string | Password of the database |
$option | array | Configuration the connection driver |
return | object |