system = &$system; $this->engine = $engine; switch ($engine) { case 'mysql': // NONE break; } } public static function getInstance($engine='mysql') { if (!(self::$instance instanceof self)) { self::$instance = new self($engine); } return self::$instance; } }