Reference Manuals

DBAPIFactory

DBAPIFactory — A static factory class to create DBAPI instances

DBAPIFactory is part of the DBAPI package.

Synopsis

class DBAPIFactory {
        public         instance            create                    ( string $dsn,
                                                                       string $username,
                                                                       string $password,
                                                                       array $options );
}

Object Hierarchy

DBAPIFactory

Description

A static factory class to create DBAPI instances

Attribute Details

Method Details

create()

public         instance       create                    ( string $dsn,
                                                          string $username,
                                                          string $password,
                                                          array $options );

Create a new DBAPI instance of the requested type

This function is identical to PHP's PDO() constructor.

$dsn
A DSN connection string for the database
$username
The username to authenticate with
$password
The password for the user
$options
The options for the database