Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0e8031e

Browse files
feature: Added method 'testConnection'
1 parent 443020e commit 0e8031e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎DbClass.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ public static function useConnection($connectionName)
124124
return false;
125125
}
126126

127+
/**
128+
* @return object|bool Return class itself or false
129+
*/
130+
public static function testConnection()
131+
{
132+
return self::getInstance();
133+
}
134+
135+
127136
/**
128137
* @return string Return current used connection
129138
*/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /