v5:reference:loadbalancer:adodbloadbalancerconnection
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:reference:loadbalancer:adodbloadbalancerconnection [2017/04/18 03:05] – ↷ Page moved from v5:reference:loadbalance:adodbloadbalancerconnection to v5:reference:loadbalancer:adodbloadbalancerconnection mnewnham | v5:reference:loadbalancer:adodbloadbalancerconnection [2017/04/27 01:07] (current) – [Other Parameters] mnewnham | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| <WRAP right box> | <WRAP right box> | ||
| == Applies To == | == Applies To == | ||
| - | ADOdb Load Balancer | + | [[v5: |
| == See Also == | == See Also == | ||
| - | [[v5: | ||
| [[v5: | [[v5: | ||
| == Syntax == | == Syntax == | ||
| Line 20: | Line 19: | ||
| </ | </ | ||
| ===== Description ===== | ===== Description ===== | ||
| - | The class '' | + | The class '' |
| + | |||
| + | Note that a connection is not established when the class is instantiated, | ||
| + | |||
| + | ------------------------ | ||
| ===== Parameters ===== | ===== Parameters ===== | ||
| ==== $driverName ==== | ==== $driverName ==== | ||
| - | The name of the ADOdb driver to be used to establish the connection. Currently only the drivers [[v5:drivers: | + | The name of the ADOdb driver to be used to establish the connection. Currently only the drivers [[v5:database: |
| ==== $connectionType ==== | ==== $connectionType ==== | ||
| - | A connection may be of the type '' | + | A connection may be of the type '' |
| ==== $connectionWeight ==== | ==== $connectionWeight ==== | ||
| For '' | For '' | ||
| ==== $persistantConnection ==== | ==== $persistantConnection ==== | ||
| + | This parameter forces the ADOdb connection to be made with a [[v5: | ||
| ==== Other Parameters ==== | ==== Other Parameters ==== | ||
| - | The other parameters are defind | + | The other parameters are defined |
| --------------------------- | --------------------------- | ||
| ===== Usage ==== | ===== Usage ==== | ||
| <code php> | <code php> | ||
| - | $driver = ' | ||
| - | $db = new ADOdbLoadBalancer( $driver ); | ||
| + | $db = new ADOdbLoadBalancer; | ||
| + | |||
| + | $driver = ' | ||
| $database = ' | $database = ' | ||
| $user = ' | $user = ' | ||
| Line 52: | Line 56: | ||
| $password, | $password, | ||
| $database ); | $database ); | ||
| - | $db0-> | + | |
| $db-> | $db-> | ||
| Line 65: | Line 69: | ||
| $password, | $password, | ||
| $database ); | $database ); | ||
| - | $db1-> | + | |
| $db-> | $db-> | ||
| Line 78: | Line 82: | ||
| $password, | $password, | ||
| $database ); | $database ); | ||
| - | $db2-> | ||
| $db-> | $db-> | ||
| </ | </ | ||
v5/reference/loadbalancer/adodbloadbalancerconnection.1492477546.txt.gz · Last modified: (external edit)
