Is there any possibility to create a configuration file with global variables that are visible inside the class? Something similar to this:
config.php:
You could try defines:
define('host_address', 'root'); define('username', 'root');
`Usage:
DB::getInstance(array(host_address, username, ...));