MediaWiki  REL1_22
OrphanStats Class Reference

Maintenance script that shows some statistics on the blob_orphans table, created with trackBlobs.php. More...

Inheritance diagram for OrphanStats:
Collaboration diagram for OrphanStats:

List of all members.

Public Member Functions

 __construct ()
 execute ()

Protected Member Functions

getDB ($cluster, $groups=array(), $wiki=false)
 Returns a database to be used by current maintenance script.

Detailed Description

Maintenance script that shows some statistics on the blob_orphans table, created with trackBlobs.php.

Definition at line 32 of file orphanStats.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 33 of file orphanStats.php.


Member Function Documentation

Reimplemented from Maintenance.

Definition at line 43 of file orphanStats.php.

References $dbr, $hashes, $res, $size, array(), as, Maintenance\error(), getDB(), Maintenance\output(), and wfGetDB().

& OrphanStats::getDB ( db,
groups = array(),
wiki = false 
) [protected]

Returns a database to be used by current maintenance script.

It can be set by setDB(). If not set, wfGetDB() will be used. This function has the same parameters as wfGetDB()

Returns:
DatabaseBase

Reimplemented from Maintenance.

Definition at line 38 of file orphanStats.php.

References $lb, and wfGetLBFactory().

Referenced by execute().


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