MediaWiki  master
CheckStorage Class Reference

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

Collaboration diagram for CheckStorage:

Public Member Functions

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

Public Attributes

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

Detailed Description

Maintenance script to do various checks on external storage.

this should extend the base Maintenance class

Definition at line 46 of file checkStorage.php.

Member Function Documentation

◆ addError()

CheckStorage::addError (   $type,
  $msg,
  $ids 
)

Definition at line 399 of file checkStorage.php.

References $type, as, errors, and print.

Referenced by check(), and checkExternalConcatBlobs().

◆ check()

◆ checkExternalConcatBlobs()

CheckStorage::checkExternalConcatBlobs (   $externalConcatBlobs)

Definition at line 422 of file checkStorage.php.

References $res, addError(), and as.

Referenced by check().

◆ importRevision()

CheckStorage::importRevision ( $revision,
$importer 
)

◆ restoreText()

CheckStorage::restoreText (   $revIds,
  $xml 
)

Definition at line 464 of file checkStorage.php.

References $dbr, $file, $params, $source, $wgDBname, DB_MASTER, DB_REPLICA, print, wfGetDB(), wfMessage(), and wfTempDir().

Referenced by check().

Member Data Documentation

◆ $dbStore

ExternalStoreDB CheckStorage::$dbStore = null

Definition at line 50 of file checkStorage.php.

◆ $errorDescriptions

CheckStorage::$errorDescriptions
Initial value:
= [
'restore text' => 'Damaged text, need to be restored from a backup'

Definition at line 52 of file checkStorage.php.

◆ $errors

CheckStorage::$errors

Definition at line 48 of file checkStorage.php.

◆ $oldIdMap

CheckStorage::$oldIdMap

Definition at line 48 of file checkStorage.php.

Referenced by check().

◆ CONCAT_HEADER

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

Definition at line 47 of file checkStorage.php.


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