26use InvalidArgumentException;
39 public static function hasFlags( $bitfield, $flags ) {
40 return ( $bitfield & $flags ) == $flags;
64 $lockingOptions[] =
'FOR UPDATE';
66 $lockingOptions[] =
'LOCK IN SHARE MODE';
69 return [ $index, $lockingOptions ];
88 throw new InvalidArgumentException(
'$index must be either DB_REPLICA or DB_PRIMARY' );
107class_alias( DBAccessObjectUtils::class,
'DBAccessObjectUtils' );
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
if(!defined('MW_SETUP_CALLBACK'))