maintenance/undelete.php File Reference

Undelete a page by fetching it from the archive table. More...

Go to the source code of this file.

Variables

 $usage
 $optionsWithArgs = array( 'u', 'r' )
 $user = 'Command line script'
 $reason = ''
if(isset($options['u'])) if(isset($options['r'])) $pageName = @$args[0]
 $title = Title::newFromText( $pageName )
if(!$title) $wgUser = User::newFromName( $user )
 $archive = new PageArchive( $title )


Detailed Description

Undelete a page by fetching it from the archive table.

Definition in file undelete.php.


Variable Documentation

$archive = new PageArchive( $title )

$optionsWithArgs = array( 'u', 'r' )

Definition at line 15 of file undelete.php.

if (isset($options['u'])) if (isset($options['r'])) $pageName = @$args[0]

Definition at line 27 of file undelete.php.

$reason = ''

Definition at line 19 of file undelete.php.

$title = Title::newFromText( $pageName )

Definition at line 28 of file undelete.php.

$usage

Initial value:

 <<<EOT
Undelete a page
Usage: php undelete.php [-u <user>] [-r <reason>] <pagename>

EOT

Definition at line 9 of file undelete.php.

Referenced by userOptions::checkOpts(), ParserTest::fuzzTest(), and Preprocessor_DOM::memCheck().

$user = 'Command line script'

Definition at line 18 of file undelete.php.

if (!$title) $wgUser = User::newFromName( $user )

Definition at line 33 of file undelete.php.


Generated on Sat Sep 5 02:08:28 2009 for MediaWiki by  doxygen 1.5.9