MediaWiki REL1_40
IDatabaseFlags.php
Go to the documentation of this file.
1<?php
21
25interface IDatabaseFlags {
26
28 public const REMEMBER_NOTHING = '';
30 public const REMEMBER_PRIOR = 'remember';
32 public const RESTORE_PRIOR = 'prior';
34 public const RESTORE_INITIAL = 'initial';
35
37 public const DBO_DEBUG = 1;
39 public const DBO_NOBUFFER = 2;
41 public const DBO_IGNORE = 4;
43 public const DBO_TRX = 8;
45 public const DBO_DEFAULT = 16;
47 public const DBO_PERSISTENT = 32;
49 public const DBO_SYSDBA = 64;
51 public const DBO_DDLMODE = 128;
52
59 public function setFlag( $flag, $remember = self::REMEMBER_NOTHING );
60
67 public function clearFlag( $flag, $remember = self::REMEMBER_NOTHING );
68
75 public function restoreFlags( $state = self::RESTORE_PRIOR );
76
83 public function getFlag( $flag );
84}
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.
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.
const DBO_NOBUFFER
Definition defines.php:10
const DBO_DDLMODE
Definition defines.php:16
const DBO_SYSDBA
Definition defines.php:15
const DBO_DEFAULT
Definition defines.php:13
const DBO_IGNORE
Definition defines.php:11
const DBO_PERSISTENT
Definition defines.php:14
const DBO_DEBUG
Definition defines.php:9
const DBO_TRX
Definition defines.php:12