예제 #1
0
}
class PostgreDB implements DB
{
    public function __construct()
    {
        echo "postgre db<br>";
    }
    public function connect()
    {
    }
    public function exec()
    {
    }
}
class MssqlDB implements DB
{
    public function __construct()
    {
        echo "mssql db<br>";
    }
    public function connect()
    {
    }
    public function exec()
    {
    }
}
$oMysql = DBFactory::create("Mysql");
$oPostgre = DBFactory::create("Postgre");
$oMssql = DBFactory::create("Mssql");