コード例 #1
0
ファイル: Tracker.php プロジェクト: Abine/piwik
 public static function disconnectDatabase()
 {
     if (isset(self::$db)) {
         self::$db->disconnect();
         self::$db = null;
     }
 }
コード例 #2
0
ファイル: Tracker.php プロジェクト: FluentDevelopment/piwik
 public static function disconnectCachedDbConnection()
 {
     // code redundancy w/ above is on purpose; above disconnectDatabase depends on method that can potentially be overridden
     if (!is_null(self::$db)) {
         self::$db->disconnect();
         self::$db = null;
     }
 }