MediaWiki REL1_40
|
Inherits Wikimedia\Rdbms\Database\IDatabaseFlags.
Public Member Functions | |
__construct ( $flags) | |
clearFlag ( $flag, $remember=self::REMEMBER_NOTHING) | |
Clear a flag for this connection. | |
getFlag ( $flag) | |
Returns a boolean whether the flag $flag is set for this connection. | |
hasImplicitTrxFlag () | |
restoreFlags ( $state=self::RESTORE_PRIOR) | |
Restore the flags to their prior state before the last setFlag/clearFlag call. | |
setFlag ( $flag, $remember=self::REMEMBER_NOTHING) | |
Set a flag for this connection. | |
Static Public Member Functions | |
static | contains (int $flags, int $bit) |
Protected Attributes | |
int | $flags |
Current bit field of class DBO_* constants. | |
Wikimedia\Rdbms\Database\DatabaseFlags::__construct | ( | $flags | ) |
Definition at line 47 of file DatabaseFlags.php.
References Wikimedia\Rdbms\Database\DatabaseFlags\$flags.
Wikimedia\Rdbms\Database\DatabaseFlags::clearFlag | ( | $flag, | |
$remember = self::REMEMBER_NOTHING ) |
Clear a flag for this connection.
int | $flag | One of (IDatabase::DBO_DEBUG, IDatabase::DBO_TRX) |
string | $remember | IDatabase::REMEMBER_* constant [default: REMEMBER_NOTHING] |
Implements Wikimedia\Rdbms\Database\IDatabaseFlags.
Definition at line 65 of file DatabaseFlags.php.
References Wikimedia\Rdbms\Database\DatabaseFlags\$flags.
|
static |
int | $flags | A bitfield of flags |
int | $bit | Bit flag constant |
Definition at line 102 of file DatabaseFlags.php.
References Wikimedia\Rdbms\Database\DatabaseFlags\$flags.
Wikimedia\Rdbms\Database\DatabaseFlags::getFlag | ( | $flag | ) |
Returns a boolean whether the flag $flag is set for this connection.
int | $flag | One of the class IDatabase::DBO_* constants |
Implements Wikimedia\Rdbms\Database\IDatabaseFlags.
Definition at line 92 of file DatabaseFlags.php.
Referenced by Wikimedia\Rdbms\Database\DatabaseFlags\hasImplicitTrxFlag().
Wikimedia\Rdbms\Database\DatabaseFlags::hasImplicitTrxFlag | ( | ) |
Definition at line 106 of file DatabaseFlags.php.
References Wikimedia\Rdbms\Database\DatabaseFlags\getFlag().
Wikimedia\Rdbms\Database\DatabaseFlags::restoreFlags | ( | $state = self::RESTORE_PRIOR | ) |
Restore the flags to their prior state before the last setFlag/clearFlag call.
string | $state | IDatabase::RESTORE_* constant. [default: RESTORE_PRIOR] |
Implements Wikimedia\Rdbms\Database\IDatabaseFlags.
Definition at line 79 of file DatabaseFlags.php.
Wikimedia\Rdbms\Database\DatabaseFlags::setFlag | ( | $flag, | |
$remember = self::REMEMBER_NOTHING ) |
Set a flag for this connection.
int | $flag | One of (IDatabase::DBO_DEBUG, IDatabase::DBO_TRX) |
string | $remember | IDatabase::REMEMBER_* constant [default: REMEMBER_NOTHING] |
Implements Wikimedia\Rdbms\Database\IDatabaseFlags.
Definition at line 51 of file DatabaseFlags.php.
References Wikimedia\Rdbms\Database\DatabaseFlags\$flags.
|
protected |
Current bit field of class DBO_* constants.
Definition at line 31 of file DatabaseFlags.php.
Referenced by Wikimedia\Rdbms\Database\DatabaseFlags\__construct(), Wikimedia\Rdbms\Database\DatabaseFlags\clearFlag(), Wikimedia\Rdbms\Database\DatabaseFlags\contains(), and Wikimedia\Rdbms\Database\DatabaseFlags\setFlag().