MediaWiki  REL1_19
CheckStorage Class Reference

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

Definition at line 43 of file checkStorage.php.


Member Function Documentation

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

Definition at line 56 of file checkStorage.php.

References $count, $dbr, $errors, $matches, $path, $res, $total, checkExternalConcatBlobs(), echo, error(), print, restoreText(), and wfGetDB().

Here is the call graph for this function:

CheckStorage::checkExternalConcatBlobs ( externalConcatBlobs)

Definition at line 356 of file checkStorage.php.

References $res, and error().

Referenced by check().

Here is the call graph for this function:

Here is the caller graph for this function:

CheckStorage::error ( type,
msg,
ids 
)

Definition at line 333 of file checkStorage.php.

References print.

Referenced by check(), and checkExternalConcatBlobs().

Here is the caller graph for this function:

CheckStorage::importRevision ( &$  revision,
&$  importer 
)

Definition at line 441 of file checkStorage.php.

References $dbr, Revision\compressRevisionText(), echo, and wfGetDB().

Here is the call graph for this function:

CheckStorage::restoreText ( revIds,
xml 
)

Definition at line 390 of file checkStorage.php.

References $dbr, $file, $wgDBname, $wgTmpDirectory, echo, print, wfEscapeShellArg(), and wfGetDB().

Referenced by check().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

CheckStorage::$dbStore = null

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

CheckStorage::$errors

Definition at line 45 of file checkStorage.php.

Referenced by check().

CheckStorage::$oldIdMap

Definition at line 45 of file checkStorage.php.

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

Definition at line 44 of file checkStorage.php.


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