MediaWiki master
CheckStorage Class Reference

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

Inherits Maintenance.

Collaboration diagram for CheckStorage:

Public Member Functions

 __construct ()
 
 check ( $fix=false, $xml='')
 
 execute ()
 
 importRevision ( $revision)
 

Public Attributes

ExternalStoreDB $dbStore = null
 
string[] $errorDescriptions
 
array $errors
 
array $oldIdMap
 

Detailed Description

Maintenance script to do various checks on external storage.

@fixme this should extend the base Maintenance class

Definition at line 40 of file checkStorage.php.

Constructor & Destructor Documentation

◆ __construct()

CheckStorage::__construct ( )

Definition at line 49 of file checkStorage.php.

Member Function Documentation

◆ check()

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

Definition at line 71 of file checkStorage.php.

References $errors, $matches, $oldIdMap, and $path.

Referenced by execute().

◆ execute()

CheckStorage::execute ( )

Definition at line 56 of file checkStorage.php.

References check().

◆ importRevision()

CheckStorage::importRevision ( $revision)
Parameters
WikiRevision$revision

Definition at line 532 of file checkStorage.php.

Member Data Documentation

◆ $dbStore

ExternalStoreDB CheckStorage::$dbStore = null

Definition at line 47 of file checkStorage.php.

◆ $errorDescriptions

string [] 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 63 of file checkStorage.php.

◆ $errors

array CheckStorage::$errors

Definition at line 44 of file checkStorage.php.

Referenced by check().

◆ $oldIdMap

array CheckStorage::$oldIdMap

Definition at line 43 of file checkStorage.php.

Referenced by check().


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