MediaWiki
REL1_19
|
DB accessable external objects. More...
Public Member Functions | |
__construct ($params=array()) | |
& | fetchBlob ($cluster, $id, $itemID) |
Fetch a blob item out of the database; a cache of the last-loaded blob will be kept so that multiple loads out of a multi-item blob can avoid redundant database access and decompression. | |
fetchFromURL ($url) | |
Fetch data from given URL. | |
& | getLoadBalancer ($cluster) |
Get a LoadBalancer for the specified cluster. | |
& | getMaster ($cluster) |
Get a master database connection for the specified cluster. | |
& | getSlave ($cluster) |
Get a slave database connection for the specified cluster. | |
getTable (&$db) | |
Get the 'blobs' table name for this database. | |
store ($cluster, $data) | |
Insert a data item into a given cluster. |
DB accessable external objects.
Definition at line 7 of file ExternalStoreDB.php.
ExternalStoreDB::__construct | ( | $ | params = array() | ) |
Definition at line 9 of file ExternalStoreDB.php.
& ExternalStoreDB::fetchBlob | ( | $ | cluster, |
$ | id, | ||
$ | itemID | ||
) |
Fetch a blob item out of the database; a cache of the last-loaded blob will be kept so that multiple loads out of a multi-item blob can avoid redundant database access and decompression.
$cluster | |
$id | |
$itemID |
Definition at line 105 of file ExternalStoreDB.php.
References $dbr, false, getMaster(), getSlave(), getTable(), wfDebug(), and wfDebugLog().
Referenced by fetchFromURL().
ExternalStoreDB::fetchFromURL | ( | $ | url | ) |
Fetch data from given URL.
$url | String: an url of the form DB://cluster/id or DB://cluster/id/itemid for concatened storage. |
Definition at line 77 of file ExternalStoreDB.php.
References $path, $url, and fetchBlob().
& ExternalStoreDB::getLoadBalancer | ( | $ | cluster | ) |
Get a LoadBalancer for the specified cluster.
$cluster | String: cluster name |
Definition at line 19 of file ExternalStoreDB.php.
References wfGetLBFactory().
Referenced by getMaster(), and getSlave().
& ExternalStoreDB::getMaster | ( | $ | cluster | ) |
Get a master database connection for the specified cluster.
$cluster | String: cluster name |
Definition at line 53 of file ExternalStoreDB.php.
References $lb, and getLoadBalancer().
Referenced by fetchBlob(), and store().
& ExternalStoreDB::getSlave | ( | $ | cluster | ) |
Get a slave database connection for the specified cluster.
$cluster | String: cluster name |
Definition at line 31 of file ExternalStoreDB.php.
References $lb, $wgDefaultExternalStore, getLoadBalancer(), and wfDebug().
Referenced by fetchBlob().
ExternalStoreDB::getTable | ( | &$ | db | ) |
Get the 'blobs' table name for this database.
$db | DatabaseBase |
Definition at line 65 of file ExternalStoreDB.php.
Referenced by fetchBlob(), and store().
ExternalStoreDB::store | ( | $ | cluster, |
$ | data | ||
) |
Insert a data item into a given cluster.
$cluster | String: the cluster name |
$data | String: the data item |
Definition at line 149 of file ExternalStoreDB.php.
References getMaster(), and getTable().
Referenced by CompressOld\compressPage().