MediaWiki
master
|
Helper class for DAO classes. More...
Static Public Member Functions | |
static | getDBOptions ( $bitfield) |
Get an appropriate DB index, options, and fallback DB index for a query. More... | |
static | hasFlags ( $bitfield, $flags) |
Additional Inherited Members | |
![]() | |
const | READ_NONE = -1 |
Constants for object loading bitfield flags (higher => higher QoS) More... | |
|
static |
Get an appropriate DB index, options, and fallback DB index for a query.
The fallback DB index and options are to be used if the entity is not found with the initial DB index, typically querying the master DB to avoid lag
int | $bitfield | Bitfield of IDBAccessObject::READ_* constants |
Definition at line 52 of file DBAccessObjectUtils.php.
References DB_MASTER, and DB_REPLICA.
Referenced by MediaWiki\Storage\SqlBlobStore\fetchBlobs(), Revision\RevisionStore\getDBConnectionRefForQueryFlags(), MediaWiki\User\ActorStore\getDBConnectionRefForQueryFlags(), MediaWiki\User\UserGroupManager\getDBConnectionRefForQueryFlags(), MediaWiki\User\UserOptionsManager\getDBForQueryFlags(), Revision\RevisionStore\getPage(), BotPassword\getPassword(), Revision\RevisionStore\getRecentChange(), Revision\RevisionStore\getRelativeRevision(), User\idForName(), User\idFromName(), User\load(), Title\loadFieldFromDB(), User\loadFromDatabase(), WikiPage\loadPageData(), Revision\RevisionStore\loadSlotRecords(), LocalIdLookup\lookupCentralIds(), LocalIdLookup\lookupUserNames(), BotPassword\newFromCentralId(), MediaWiki\User\UserFactory\newFromConfirmationCode(), Title\newFromID(), Page\WikiPageFactory\newFromID(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider\testUserExists(), and MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\testUserExists().
|
static |
int | $bitfield | |
int | $flags | IDBAccessObject::READ_* constant |
Definition at line 35 of file DBAccessObjectUtils.php.
Referenced by MediaWiki\Storage\SqlBlobStore\fetchBlobs(), Title\getArticleID(), Title\getContentModel(), Title\getLatestRevID(), Title\getLength(), Revision\RevisionStore\getPage(), Title\isRedirect(), User\loadFromId(), and Title\loadRestrictions().