Lets say i have construct method like so:
Code: Select all
public function __construct($host = NULL, $user = NULL, $pass = NULL, $debug = false) {
if (!$host OR !$user) {
// THIS IS THE PART I CAN'T FIGURE OUT
}
$this->debug = (bool) $debug;
return $this->connect($host, $user, $pass);
}
Example:
Code: Select all
$test = new mysql();
Is that possible?
Regards, Kristian.