MediaWiki  REL1_22
CheckStorage Class Reference

Maintenance script to do various checks on external storage. More...

List of all members.

Public Member Functions

 check ($fix=false, $xml= '')
 checkExternalConcatBlobs ($externalConcatBlobs)
 error ($type, $msg, $ids)
 importRevision (&$revision, &$importer)
 restoreText ($revIds, $xml)

Public Attributes

 $dbStore = null
 $errorDescriptions
 $errors
 $oldIdMap
const CONCAT_HEADER = 'O:27:"concatenatedgziphistoryblob"'

Detailed Description

Maintenance script to do various checks on external storage.

Definition at line 45 of file checkStorage.php.


Member Function Documentation

CheckStorage::checkExternalConcatBlobs ( externalConcatBlobs)

Definition at line 358 of file checkStorage.php.

References $res, array(), as, and error().

Referenced by check().

CheckStorage::error ( type,
msg,
ids 
)

Definition at line 335 of file checkStorage.php.

References array(), as, errors, and print.

Referenced by check(), and checkExternalConcatBlobs().

CheckStorage::importRevision ( &$  revision,
&$  importer 
)
CheckStorage::restoreText ( revIds,
xml 
)

Definition at line 392 of file checkStorage.php.

References $dbr, $file, $source, $wgDBname, array(), global, print, wfEscapeShellArg(), wfGetDB(), and wfTempDir().

Referenced by check().


Member Data Documentation

CheckStorage::$dbStore = null

Definition at line 48 of file checkStorage.php.

CheckStorage::$errorDescriptions
Initial value:
 array(
        'restore text' => 'Damaged text, need to be restored from a backup',
        'restore revision' => 'Damaged revision row, need to be restored from a backup',
        'unfixable' => 'Unexpected errors with no automated fixing method',
        'fixed' => 'Errors already fixed',
        'fixable' => 'Errors which would already be fixed if --fix was specified',
    )

Definition at line 50 of file checkStorage.php.

CheckStorage::$errors

Definition at line 47 of file checkStorage.php.

Referenced by check().

CheckStorage::$oldIdMap

Definition at line 47 of file checkStorage.php.

const CheckStorage::CONCAT_HEADER = 'O:27:"concatenatedgziphistoryblob"'

Definition at line 46 of file checkStorage.php.


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