maintenance/deleteBatch.php File Reference

Deletes a batch of pages Usage: php deleteBatch.php [-u <user>] [-r <reason>] [-i <interval>] [listfile] where [listfile] is a file where each line contains the title of a page to be deleted, standard input is used if listfile is not given. More...

Go to the source code of this file.

Variables

 $oldCwd = getcwd()
 $optionsWithArgs = array( 'u', 'r', 'i' )
 $filename = 'php://stdin'
 $user = 'Delete page script'
 $reason = ''
 $interval = 0
if(isset($args[0])) if(isset($options['u']))
if(isset($options['r'])) if(isset($options['i'])) 
$wgUser = User::newFromName( $user )
 $file = fopen( $filename, 'r' )
if(!$file) $dbw = wfGetDB( DB_MASTER )


Detailed Description

Deletes a batch of pages Usage: php deleteBatch.php [-u <user>] [-r <reason>] [-i <interval>] [listfile] where [listfile] is a file where each line contains the title of a page to be deleted, standard input is used if listfile is not given.

<user> is the username <reason> is the delete reason <interval> is the number of seconds to sleep for after each delete

Definition in file deleteBatch.php.


Variable Documentation

if (!$file) $dbw = wfGetDB( DB_MASTER )

Definition at line 54 of file deleteBatch.php.

$file = fopen( $filename, 'r' )

Definition at line 48 of file deleteBatch.php.

Referenced by XmlTypeCheck::__construct(), ImageBuilder::addMissingImage(), OutputPage::addScriptFile(), addWiki(), UploadForm::ajaxGetExistsWarning(), SpecialRevisionDelete::archivedfileLine(), OutputPage::buildCssLinks(), ImageHandler::canRender(), ApiDelete::deleteFile(), ParserTest::deleteFiles(), MimeMagic::detectMimeType(), UploadForm::detectScript(), UploadForm::detectVirus(), MimeMagic::doGuessMimeType(), MovePageForm::doSubmit(), DjVuImage::dump(), Dump7ZipOutput::Dump7ZipOutput(), DumpBZip2Output::DumpBZip2Output(), DumpDBZip2Output::DumpDBZip2Output(), DumpFileOutput::DumpFileOutput(), DjVuImage::dumpForm(), DumpGZipOutput::DumpGZipOutput(), DumpPipeOutput::DumpPipeOutput(), ParserTest::dumpToFile(), UndeleteForm::execute(), InstallerResource::extract(), SpecialRevisionDelete::fileComment(), SpecialRevisionDelete::fileLine(), CoreParserFunctions::filepath(), SpecialRevisionDelete::fileUserTools(), UploadDumper::filterItem(), findAuxFile(), FileCache::findFile(), findFiles(), FileRepo::findFiles(), UndeleteForm::formatFileRow(), generatePo(), getBadHooksFromFile(), getBadHooksFromPath(), ImageHistoryPseudoPager::getBody(), ImageHandler::getDimensionsString(), UploadForm::getDupeWarning(), ImagePage::getDuplicates(), UploadForm::getExistsWarning(), UndeleteForm::getFileComment(), UndeleteForm::getFileLink(), UndeleteForm::getFileUser(), MediaHandler::getGeneralLongDesc(), MediaHandler::getGeneralShortDesc(), ArchivedFile::getGroup(), getHooksFromFile(), getHooksFromPath(), DjVuImage::getInfo(), ApiQueryImageInfo::getInfo(), Language::getLanguageNames(), MWException::getLogMessage(), SvgHandler::getLongDesc(), ImageHandler::getLongDesc(), MediaHandler::getLongDesc(), DjVuImage::getMultiPageInfo(), DjVuImage::getPageInfo(), ImageHandler::getShortDesc(), MediaHandler::getShortDesc(), Skin::getSkinNames(), Language::getSpecialPageAliases(), LocalFile::getThumbnails(), ForeignAPIFile::getThumbnails(), MimeMagic::guessMimeType(), ImageBuilder::imageCallback(), ImagePage::imageDupes(), ImageHistoryList::imageHistoryLine(), BackupReader::importFromFile(), BackupReader::importFromStdin(), WikiRevision::importUpload(), IncludableSpecialPage::IncludableSpecialPage(), include_ok(), MediaWiki::initializeArticle(), Language::isLocalisationOutOfDate(), Title::isValidMoveOperation(), Title::isValidMoveTarget(), AutoLoader::loadAllExtensions(), MessageCache::loadAllMessages(), MessageCache::loadFromLocal(), BackupDumper::loadPlugin(), RecompressTracked::logToFile(), Parser::makeImage(), Linker::makeImageLink2(), Linker::makeImageLinkObj(), Linker::makeThumbLink2(), Linker::makeThumbLinkObj(), Title::moveOverExistingRedirect(), Title::moveToNewTitle(), ImportStreamSource::newFromFile(), OldLocalFile::newFromRow(), ForeignDBFile::newFromRow(), ArchivedFile::newFromRow(), ImportStreamSource::newFromURL(), ImageBuilder::oldimageCallback(), DatabaseSqlite::open(), UploadDumper::outputItem(), LocalFile::purgeThumbnails(), ForeignAPIFile::purgeThumbnails(), DjVuImage::readChunk(), require_ok(), CheckStorage::restoreText(), DumpRenderer::run(), MakeMessagesDB::run(), XmlTypeCheck::run(), ApiQueryAllimages::run(), MessageCache::saveToLocal(), MessageCache::saveToScript(), ImagePage::setFile(), RevisionDeleter::setOldImgVisibility(), UndeleteForm::showFileConfirmationForm(), DjVuImage::skipChunk(), SpecialPage::SpecialPage(), UnlistedSpecialPage::UnlistedSpecialPage(), RevisionDeleter::updateArchFiles(), RevisionDeleter::updateOldFiles(), wfAbruptExit(), wfAjaxGetFileUrl(), wfAjaxGetThumbnailUrl(), wfBacktrace(), wfDeprecated(), wfErrorLog(), wfGetPrecompiledData(), wfSpecialFilepath(), and XmlDumpWriter::writeUpload().

$filename = 'php://stdin'

Definition at line 25 of file deleteBatch.php.

$interval = 0

Definition at line 28 of file deleteBatch.php.

Referenced by wfGearmanMonitor().

$oldCwd = getcwd()

Definition at line 17 of file deleteBatch.php.

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

Definition at line 18 of file deleteBatch.php.

$reason = ''

$user = 'Delete page script'

Definition at line 26 of file deleteBatch.php.

if (isset($args[0])) if (isset($options['u'])) if (isset($options['r'])) if (isset($options['i'])) $wgUser = User::newFromName( $user )

Definition at line 43 of file deleteBatch.php.


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