MediaWiki  1.30.0
CheckStorage Class Reference

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

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.

@fixme this should extend the base Maintenance class

Definition at line 48 of file checkStorage.php.

Member Function Documentation

◆ check()

CheckStorage::check (   $fix = false,
  $xml = '' 
)

◆ checkExternalConcatBlobs()

CheckStorage::checkExternalConcatBlobs (   $externalConcatBlobs)

Definition at line 383 of file checkStorage.php.

References $res, as, captcha-old\count, and error().

Referenced by check().

◆ error()

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

Definition at line 360 of file checkStorage.php.

References $type, as, captcha-old\count, and errors.

Referenced by check(), and checkExternalConcatBlobs().

◆ importRevision()

CheckStorage::importRevision ( $revision,
$importer 
)

◆ restoreText()

CheckStorage::restoreText (   $revIds,
  $xml 
)

Member Data Documentation

◆ $dbStore

CheckStorage::$dbStore = null

Definition at line 51 of file checkStorage.php.

◆ $errorDescriptions

CheckStorage::$errorDescriptions
Initial value:
= [
'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 53 of file checkStorage.php.

◆ $errors

CheckStorage::$errors

Definition at line 50 of file checkStorage.php.

Referenced by check().

◆ $oldIdMap

CheckStorage::$oldIdMap

Definition at line 50 of file checkStorage.php.

◆ CONCAT_HEADER

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

Definition at line 49 of file checkStorage.php.


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