/** * Set connection type, PDO|MySqlI|MySql * @param $type */ public static function setConnectionType($type = self::ADAPTER_PDO) { if ($type != self::$connectionType) { self::$conn = null; self::$instance = null; self::$connectionType = $type; self::getInstance($type); } }