As of few minutes ago PDO extension allows constructor overloading, which is something a lot of people had asked for. This means that you can do things like this:
PHP:
<?php
class myDB extends PDO {
public function __construct() {
parent::__construct("DSN", "login","pass");
}
}
?>
Keep in mind that if you don't call the original PDO constructor via parent::__construct() an error will be generated, so exercise caution when using this feature.