MediaWiki REL1_39
CheckStorage Class Reference

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

Collaboration diagram for CheckStorage:

Public Member Functions

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

Public Attributes

ExternalStoreDB $dbStore = null
 
 $errorDescriptions
 
 $errors
 
 $oldIdMap
 

Detailed Description

Maintenance script to do various checks on external storage.

@fixme this should extend the base Maintenance class

Definition at line 45 of file checkStorage.php.

Member Function Documentation

◆ check()

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

Definition at line 59 of file checkStorage.php.

References $dbr, $errors, $matches, $oldIdMap, $path, $res, DB_PRIMARY, DB_REPLICA, print, unserialize(), and wfGetDB().

◆ importRevision()

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

Definition at line 514 of file checkStorage.php.

References $content, $dbr, $res, DB_PRIMARY, DB_REPLICA, and wfGetDB().

Member Data Documentation

◆ $dbStore

ExternalStoreDB CheckStorage::$dbStore = null

Definition at line 49 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 51 of file checkStorage.php.

◆ $errors

CheckStorage::$errors

Definition at line 47 of file checkStorage.php.

Referenced by check().

◆ $oldIdMap

CheckStorage::$oldIdMap

Definition at line 47 of file checkStorage.php.

Referenced by check().


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