PHP Class Pheasant\Database\Dsn

Afficher le fichier Open project: lox/pheasant Class Usage Examples

Méthodes publiques

Свойство Type Description
$database
$host
$params
$pass
$port
$scheme
$user

Méthodes publiques

Méthode Description
__construct ( $dsn ) Constructor
__toString ( ) : string Serialize the DSN into a string
copy ( $alter = [] ) Returns a clone with certain parameters changed
fromString ( $dsn ) : Dsn Static constructor

Method Details

__construct() public méthode

Constructor
public __construct ( $dsn )

__toString() public méthode

Serialize the DSN into a string
public __toString ( ) : string
Résultat string

copy() public méthode

Returns a clone with certain parameters changed
public copy ( $alter = [] )

fromString() public static méthode

Static constructor
public static fromString ( $dsn ) : Dsn
Résultat Dsn

Property Details

$database public_oe property

public $database

$host public_oe property

public $host

$params public_oe property

public $params

$pass public_oe property

public $pass

$port public_oe property

public $port

$scheme public_oe property

public $scheme

$user public_oe property

public $user