mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:00:17 +00:00
Add some phpdoc
This commit is contained in:
parent
b7f1de1e64
commit
aefbc703f2
1 changed files with 11 additions and 1 deletions
|
@ -6,6 +6,10 @@ use Friendica\Database\Database;
|
|||
use PDO;
|
||||
use PDOException;
|
||||
|
||||
/**
|
||||
* Overrides the Friendica database class for re-using the connection
|
||||
* for different tests
|
||||
*/
|
||||
class StaticDatabase extends Database
|
||||
{
|
||||
/**
|
||||
|
@ -99,13 +103,16 @@ class StaticDatabase extends Database
|
|||
}
|
||||
|
||||
/**
|
||||
* @return ExtendedPDO
|
||||
* @return ExtendedPDO The global, static connection
|
||||
*/
|
||||
public static function getGlobConnection()
|
||||
{
|
||||
return self::$staticConnection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a global commit for every nested transaction of the static connection
|
||||
*/
|
||||
public static function statCommit()
|
||||
{
|
||||
if (isset(self::$staticConnection)) {
|
||||
|
@ -115,6 +122,9 @@ class StaticDatabase extends Database
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a global rollback for every nested transaction of the static connection
|
||||
*/
|
||||
public static function statRollback()
|
||||
{
|
||||
if (isset(self::$staticConnection)) {
|
||||
|
|
Loading…
Reference in a new issue