Manual:DBAccessObjectUtils.php

Category:MediaWiki code#DBAccessObjectUtils.php

A helper class for Data Access Object (DAO) classes. The fallback DB index and options are to be used if the entity is not found with the initial DB index, typically querying the primary DB to avoid lag.

Implements

Public methods

  • hasFlags()
  • getDBOptions( $bitfield ) - get an appropriate DB index, options, and fallback DB index for a query. Takes a bitfield integer of IDBAccessObject::READ_* constants.
Category:MediaWiki code