MediaWiki  master
IDBAccessObject.php
Go to the documentation of this file.
1 <?php
55 interface IDBAccessObject {
58  const READ_NORMAL = 0;
59 
61  const READ_LATEST = 1;
62 
63  /* @var int Read from the master/quorum and lock out other writers */
64  const READ_LOCKING = self::READ_LATEST | 2; // READ_LATEST (1) and "LOCK IN SHARE MODE" (2)
65 
67  const READ_EXCLUSIVE = self::READ_LOCKING | 4; // READ_LOCKING (3) and "FOR UPDATE" (4)
68 
70  const READ_LATEST_IMMUTABLE = 8;
71 
72  // Convenience constant for tracking how data was loaded (higher => higher QoS)
73  const READ_NONE = -1; // not loaded yet (or the object was cleared)
74 }
IDBAccessObject
Interface for database access objects.
Definition: IDBAccessObject.php:55
IDBAccessObject\READ_LOCKING
const READ_LOCKING
Constants for object loading bitfield flags (higher => higher QoS)
Definition: IDBAccessObject.php:64
IDBAccessObject\READ_NONE
const READ_NONE
Definition: IDBAccessObject.php:73