MediaWiki  REL1_23
DBConnRef Class Reference

Helper class to handle automatically marking connectons as reusable (via RAII pattern) as well handling deferring the actual network connection until the handle is used. More...

Inheritance diagram for DBConnRef:
Collaboration diagram for DBConnRef:

List of all members.

Public Member Functions

 __call ($name, $arguments)
 __construct (LoadBalancer $lb, $conn)
 __destruct ()

Protected Attributes

DatabaseBase null $conn
 *
LoadBalancer $lb
 *
array null $params
 *

Detailed Description

Helper class to handle automatically marking connectons as reusable (via RAII pattern) as well handling deferring the actual network connection until the handle is used.

Since:
1.22

Definition at line 1155 of file LoadBalancer.php.


Constructor & Destructor Documentation

DBConnRef::__construct ( LoadBalancer lb,
conn 
)
Parameters:
LoadBalancer$lb
DatabaseBase | array$connConnection or (server index, group, wiki ID) array

Definition at line 1166 of file LoadBalancer.php.

References $conn, and $lb.

Definition at line 1184 of file LoadBalancer.php.


Member Function Documentation

DBConnRef::__call ( name,
arguments 
)

Definition at line 1175 of file LoadBalancer.php.


Member Data Documentation

DatabaseBase null DBConnRef::$conn [protected]

*

Definition at line 1158 of file LoadBalancer.php.

Referenced by __construct().

LoadBalancer DBConnRef::$lb [protected]

*

Definition at line 1156 of file LoadBalancer.php.

Referenced by __construct().

array null DBConnRef::$params [protected]

*

Definition at line 1160 of file LoadBalancer.php.


The documentation for this class was generated from the following file: