HumHub Documentation (unofficial)

Dsn
in package

FinalYes
Tags
author

Konstantin Myakshin molodchick@gmail.com

Table of Contents

Properties

$host  : mixed
$options  : mixed
$password  : mixed
$port  : mixed
$scheme  : mixed
$user  : mixed

Methods

__construct()  : mixed
fromString()  : self
getHost()  : string
getOption()  : mixed
getPassword()  : string|null
getPort()  : int|null
getScheme()  : string
getUser()  : string|null

Properties

$host

private mixed $host

$options

private mixed $options

$password

private mixed $password

$port

private mixed $port

$scheme

private mixed $scheme

$user

private mixed $user

Methods

__construct()

public __construct(string $scheme, string $host[, string|null $user = null ][, string|null $password = null ][, int|null $port = null ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$scheme : string
$host : string
$user : string|null = null
$password : string|null = null
$port : int|null = null
$options : array<string|int, mixed> = []

fromString()

public static fromString(string $dsn) : self
Parameters
$dsn : string
Return values
self

getHost()

public getHost() : string
Return values
string

getOption()

public getOption(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null

getPassword()

public getPassword() : string|null
Return values
string|null

getPort()

public getPort([int|null $default = null ]) : int|null
Parameters
$default : int|null = null
Return values
int|null

getScheme()

public getScheme() : string
Return values
string

getUser()

public getUser() : string|null
Return values
string|null

        
On this page

Search results