[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/dao/ -> DBAccessBase.php (summary)

Base class for objects that allow access to other wiki's databases using the foreign database access mechanism implemented by LBFactoryMulti. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Daniel Kinzler
File Size: 92 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  __construct()
  getConnection()
  releaseConnection()
  getLoadBalancer()

Functions
Functions that are not part of a class:

__construct( $wiki = false )   X-Ref

param: string|bool $wiki The target wiki's name. This must be an ID

getConnection( $id, $groups = array()   X-Ref
Returns a database connection.

param: int $id Which connection to use
param: array $groups Query groups
return: DatabaseBase

releaseConnection( DatabaseBase $db )   X-Ref
Releases a database connection and makes it available for recycling.

param: DatabaseBase $db The database connection to release.

getLoadBalancer()   X-Ref
Get the database type used for read operations.

return: LoadBalancer The database load balancer object



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1