MediaWiki  REL1_24
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 1173 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 1184 of file LoadBalancer.php.

Definition at line 1202 of file LoadBalancer.php.

References $conn.


Member Function Documentation

DBConnRef::__call ( name,
arguments 
)

Definition at line 1193 of file LoadBalancer.php.


Member Data Documentation

DatabaseBase null DBConnRef::$conn [protected]

*

Definition at line 1176 of file LoadBalancer.php.

Referenced by __destruct().

LoadBalancer DBConnRef::$lb [protected]

*

Definition at line 1174 of file LoadBalancer.php.

array null DBConnRef::$params [protected]

*

Definition at line 1178 of file LoadBalancer.php.


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