MediaWiki  1.23.2
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:

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

◆ __construct()

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.

◆ __destruct()

DBConnRef::__destruct ( )

Definition at line 1184 of file LoadBalancer.php.

Member Function Documentation

◆ __call()

DBConnRef::__call (   $name,
  $arguments 
)

Definition at line 1175 of file LoadBalancer.php.

References $name, $params, array(), and list.

Member Data Documentation

◆ $conn

DatabaseBase null DBConnRef::$conn
protected

Definition at line 1158 of file LoadBalancer.php.

Referenced by __construct().

◆ $lb

LoadBalancer DBConnRef::$lb
protected

Definition at line 1156 of file LoadBalancer.php.

Referenced by __construct().

◆ $params

array null DBConnRef::$params
protected

Definition at line 1160 of file LoadBalancer.php.

Referenced by __call().


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