public static function create(&$db) { if (!isset(self::$s_instance)) { $c = __CLASS__; self::$s_instance = new $c($db); } return self::$s_instance; }