MediaWiki  REL1_22
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 1112 of file LoadBalancer.php.


Constructor & Destructor Documentation

DBConnRef::__construct ( LoadBalancer lb,
conn 
)
Parameters:
$lbLoadBalancer
$connDatabaseBase|array Connection or (server index, group, wiki ID) array

Definition at line 1121 of file LoadBalancer.php.

Definition at line 1138 of file LoadBalancer.php.


Member Function Documentation

DBConnRef::__call ( name,
arguments 
)

Definition at line 1130 of file LoadBalancer.php.


Member Data Documentation

DatabaseBase null DBConnRef::$conn [protected]

*

Definition at line 1114 of file LoadBalancer.php.

LoadBalancer DBConnRef::$lb [protected]

*

Definition at line 1113 of file LoadBalancer.php.

Array null DBConnRef::$params [protected]

*

Definition at line 1115 of file LoadBalancer.php.


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