Subject | Re: Current firebird_pdo status? |
---|---|
Author | xdenser |
Post date | 2010-03-09T07:22:23Z |
--- In firebird-php@yahoogroups.com, Matthias Hanft <mh@...> wrote:
so you will need only one switch to decide wich class to use for db connectivity
>make abstract class or interface and make two different classes realising that interface for firebird and MySQL
> PHP code as
>
> switch ($dbType) {
> case FIREBIRD: ibase_connect...
> case MYSQL: mysql_connect...
> }
>
>
so you will need only one switch to decide wich class to use for db connectivity