MediaWiki REL1_33
docs/pageupdater.txt File Reference

Typedefs

using $updater = $page->newPageUpdater( $user )
 

Functions

$updater setContent (SlotRecord::MAIN, $content)
 
$updater setRcPatrolStatus (RecentChange::PRC_PATROLLED)
 

Variables

 $content = $parent->getContent( SlotRecord::MAIN )->replaceSection( $section, $sectionContent )
 
 $newRev = $updater->saveRevision( $comment )
 
 $parent = $updater->grabParentRevision()
 
In both all secondary updates will be triggered automatically
 
In both cases
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during or when puring a page It s a stepping stone on the way to a more complete refactoring of WikiPage we want to define interfaces for the different use cases of particularly providing access to post PST content and ParserOutput to callbacks during revision creation
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that data
 
This document provides an overview of the usage of PageUpdater and DerivedPageDataUpdater
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during import
 
This document provides an overview of the usage of PageUpdater and that is
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during or when puring a page It s a stepping stone on the way to a more complete refactoring of WikiPage NOTE
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links page_props
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the ParserCache
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during or when puring a page It s a stepping stone on the way to a more complete refactoring of WikiPage we want to define interfaces for the different use cases of particularly providing access to post PST content and ParserOutput to callbacks during revision which currently use and allowing updates to be triggered on purge
 
In both all secondary updates will be triggered handle like object that caches derived data representing a revision
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new revisions
 
This document provides an overview of the usage of PageUpdater and that to perform edits PageUpdater is a stateful
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links tables
 
In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during undeletion
 

Typedef Documentation

◆ $updater

Usage with content depending on the parent revision $updater = $page->newPageUpdater( $user )

Definition at line 63 of file pageupdater.txt.

Function Documentation

◆ setContent()

$updater setContent ( SlotRecord::MAIN ,
$content )

◆ setRcPatrolStatus()

$updater setRcPatrolStatus ( RecentChange::PRC_PATROLLED )

Variable Documentation

◆ $content

$content = $parent->getContent( SlotRecord::MAIN )->replaceSection( $section, $sectionContent )

Definition at line 72 of file pageupdater.txt.

Referenced by PoolWorkArticleView::__construct(), ParserTestRunner::addArticle(), OutputPage::addContentOverride(), ApiComparePagesTest::addPage(), InfoAction::addTable(), EditPageTest::assertEdit(), ResourceLoaderModule::buildContent(), ApiStashEdit::checkCache(), MediaWiki\Revision\RevisionStore::checkContent(), CleanupSpam::cleanupArticle(), MediaWiki\Storage\PageUpdater::computeEffectiveTags(), ConfirmEditHooks::confirmEditMerged(), SimpleCaptcha::confirmEditMerged(), Message::content(), Installer::createMainpage(), WikiPageDbTestBase::createMockContent(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::createMockContent(), RefreshLinksJobTest::createPage(), WikiPageDbTestBase::createPage(), PagePropsTest::createPage(), RevisionDbTestBase::createPage(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::createRevision(), MediaWiki\Tests\Storage\PageUpdaterTest::createRevision(), EditPage::displayPermissionsError(), EditPage::displayViewSourcePage(), ApiQueryWatchlistIntegrationTest::doAnonPageEdit(), ApiQueryWatchlistIntegrationTest::doBotPageEdit(), WikiPage::doDeleteArticleBatched(), Article::doDeleteUpdates(), WikiPage::doDeleteUpdates(), Article::doEditContent(), WikiPage::doEditContent(), DifferenceEngineTest::doEdits(), ApiQueryWatchlistIntegrationTest::doMinorPageEdit(), ApiQueryWatchlistIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), EditPage::doPreviewParse(), FileBackendTest::doTestGetFileContents(), FileBackendTest::doTestGetFileHttpUrl(), FileBackendTest::doTestGetFileStat(), FileBackendTest::doTestGetLocalCopy(), FileBackendTest::doTestGetLocalReference(), FileBackendTest::doTestStreamFile(), FileBackendTest::doTestStreamFileRange(), MediaWiki\Revision\RevisionStore::emulateMainSlot_1_29(), ApiEditPage::execute(), ApiStashEdit::execute(), BenchmarkJavaScriptMinifier::execute(), BenchmarkJSMinPlus::execute(), EditCLI::execute(), GetTextMaint::execute(), ImportSiteScripts::execute(), MakeTestEdits::execute(), DumpRev::execute(), ViewCLI::execute(), Parser::extensionSubstitution(), ApiQueryRevisionsBase::extractAllSlotInfo(), ApiQueryRevisionsBase::extractDeprecatedContent(), ApiQueryRevisionsBase::extractSlotInfo(), Parser::extractTagsAndParams(), SpecialNewpages::feedItemDesc(), ApiFeedContributions::feedItemDesc(), Xml::fieldset(), PopulateContentTables::fillMissingFields(), SpamBlacklistHooks::filterMergedContent(), WikiImporter::finishImportPage(), RefreshLinks::fixRedirect(), FormatMetadata::flattenArrayReal(), CoreTagHooks::gallery(), AutoloadGenerator::generatePHPAutoload(), BaseTemplate::getAfterPortlet(), ContentHandler::getAutoDeleteReason(), FindHooks::getBadHooksFromFile(), PreferencesFormOOUI::getBody(), MediaWiki\Widget\CheckMatrixWidget::getCellTag(), MediaWiki\Revision\RevisionRecord::getContent(), ResourceLoaderWikiModule::getContent(), MWHttpRequest::getContent(), ApiStashEdit::getContentHash(), ResourceLoaderWikiModule::getContentObj(), EditPage::getContentObject(), Article::getContentObject(), ContentHandler::getContentText(), EditPage::getCurrentContent(), ContentHandler::getDataForSearchIndex(), WikiPage::getDeletionUpdates(), Article::getDeletionUpdates(), ApiComparePages::getDiffRevision(), Article::getEmptyPageParserOutput(), ContentHandler::getForContent(), GadgetDefinitionNamespaceRepo::getGadget(), FindHooks::getHooksFromFile(), FindHooks::getHooksFromLocalDoc(), ChangeTagsLogItem::getHTML(), ChangeTagsRevisionItem::getHTML(), RevDelRevisionItem::getHTML(), BaseTemplate::getIndicators(), PageArchive::getLastRevisionText(), TimelessTemplate::getMainNavigation(), MessageCache::getMessageTextFromContent(), PNGMetadataExtractor::getMetadata(), MediaWiki\Tests\Revision\RenderedRevisionTest::getMockRevision(), EditPage::getOriginalContent(), ResourceLoaderFileModule::getPackageFiles(), ContentHandler::getPageViewLanguage(), WikitextStructureTest::getParserOutput(), TimelessTemplate::getPortlet(), MonoBookTemplate::getPortlet(), EditPage::getPreloadedContent(), EditPage::getPreviewText(), RawAction::getRawText(), MonoBookTemplate::getRenderedSidebar(), MediaWiki\Sparql\SparqlClientTest::getRequestMock(), LogFormatter::getRestrictedElement(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::getRevisionRecordFromDetailsArray(), Article::getRevisionRedirectTarget(), Revision::getRevisionText(), OutputPage::getRlClientContext(), MediaWiki\Storage\DerivedPageDataUpdater::getSecondaryDataUpdates(), BaseTemplate::getSidebar(), TimelessTemplate::getSidebarChunk(), DifferenceEngine::getSlotDiffRenderers(), MediaWiki\Revision\RenderedRevision::getSlotParserOutput(), MediaWiki\Revision\RenderedRevision::getSlotParserOutputUncached(), ApiStashEditTest::getStashKey(), Article::getSubstituteContent(), ResourceLoaderFileModule::getTemplates(), ResourceLoaderWikiModule::getTitleInfo(), FileBackendGroup::guessMimeInternal(), DumpRenderer::handleRevision(), FixDefaultJsonContentPages::handleRow(), CoreTagHooks::html(), ClassCollector::implodeTokens(), CheckStorage::importRevision(), CoreTagHooks::indicator(), EditPage::initialiseForm(), WikiPage::insertRedirect(), EditPage::internalAttemptSave(), WikiPage::isCountable(), MediaWiki\Storage\DerivedPageDataUpdater::isCountable(), Title::isValidMoveTarget(), MovePage::isValidMoveTarget(), JobRunner::loadBackoffs(), MessageCache::loadCachedMessagePageEntry(), Benchmarker::loadFile(), MessageCache::loadFromDB(), MediaWiki\Revision\RevisionStore::loadSlotContent(), SimpleCaptcha::loadText(), MediaWiki\Storage\PageUpdater::makeAutoSummary(), UserTest::makeEdit(), ResourceLoader::makeModuleResponse(), MediaWiki\Storage\PageUpdater::makeNewRevision(), MessageCacheTest::makePage(), LinkFilter::matchEntry(), MediaWiki\Storage\RevisionSlotsUpdate::modifyContent(), MediaWiki\Storage\RevisionSlotsUpdate::newFromContent(), Gadget::newFromDefinitionContent(), MediaWiki\Revision\RevisionStore::newMutableRevisionFromArray(), MediaWiki\Tests\Revision\MutableRevisionSlotsTest::newSavedSlot(), MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::newSavedSlot(), RevisionDbTestBase::newTestRevision(), CoreTagHooks::nowiki(), ConfirmEditHooks::onAlternateEditPreview(), onContentGetParserOutput(), GadgetHooks::onEditFilterMergedContent(), SpamBlacklistHooks::onUploadVerifyUpload(), HistoryAction::onView(), InfoAction::onView(), SpecialUploadStash::outputContents(), ApiStashEdit::parseAndStash(), RebuildTextIndex::populateSearchIndex(), CoreTagHooks::pre(), MediaWiki\Storage\DerivedPageDataUpdater::prepareContent(), Article::prepareContentForEdit(), WikiPage::prepareContentForEdit(), CompareParsers::processRevision(), PreprocessDump::processRevision(), RevisionDbTestBase::provideInsertOn_exceptionOnIncomplete(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::provideNotReadyForInsertion(), FileBackendTest::provider_testConcatenate(), MWHttpRequest::read(), CurlHttpRequest::readHeader(), ApiFormatXml::recXmlPrint(), VectorTemplate::renderPortal(), VectorTemplate::renderPortals(), Parser::replaceTransparentTags(), DoubleRedirectJob::run(), BenchmarkParse::runParser(), EditPage::runPostMergeFilters(), ParserTestRunner::runTest(), TextContentHandler::serializeContent(), WikitextContentHandler::serializeContent(), DummyContentHandlerForTesting::serializeContent(), DummyNonTextContentHandler::serializeContent(), MediaWiki\Revision\MutableRevisionRecord::setContent(), MediaWiki\Revision\MutableRevisionSlots::setContent(), MediaWiki\Storage\PageUpdater::setContent(), ParserOutput::setIndicator(), EditPage::setPreloadedContent(), SpecialRecentChanges::setTopText(), PageArchiveTestBase::setUp(), ParserOptions::setupFakeRevision(), MediaWiki\Tests\Maintenance\BaseDumpTest::setUpPrefetch(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest::setUpStub(), SimpleCaptcha::shouldCheck(), EditPage::showEditForm(), SpecialBookSources::showList(), SpecialUndelete::showRevision(), Parser::statelessFetchTemplate(), MediaWiki\Revision\RevisionStore::storeContentBlob(), LogFormatter::styleRestricedElement(), JobRunner::syncBackoffDeltas(), JavaScriptContentTest::testAddSectionHeader(), ArticleViewTest::testArticleAfterFetchContentObjectHook(), ArticleViewTest::testArticleContentViewCustomHook(), ArticleViewTest::testArticleRevisionViewCustomHook(), MediaWiki\Tests\Revision\SlotRecordTest::testConstructionDeferred(), TextContentTest::testCopy(), EditPageTest::testCreatePage(), MediaWiki\Tests\Storage\PageUpdaterTest::testCreatePage(), EditPageTest::testCreatePageTrx(), TextContentTest::testDeletionUpdates(), WikiPageDbTestBase::testDoEditContent(), WikiPageDbTestBase::testDoEditContent_twice(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testDoUpdates(), PoolWorkArticleViewTest::testDoWorkWithContent(), ApiEditPageTest::testEditAppend(), ContentHandlerTest::testGetAutosummary(), RevisionDbTestBase::testGetContent(), WikiPageDbTestBase::testGetContent(), MediaWiki\Tests\Revision::testGetContent(), RevisionTest::testGetContent(), RevisionDbTestBase::testGetContentClone(), CssContentTest::testGetContentHandler(), JavaScriptContentTest::testGetContentHandler(), TextContentTest::testGetContentHandler(), ContentHandlerTest::testGetContentText_NonTextContent_fail(), ContentHandlerTest::testGetContentText_NonTextContent_ignore(), ContentHandlerTest::testGetContentText_NonTextContent_serialize(), ContentHandlerTest::testGetContentText_Null(), ContentHandlerTest::testGetContentText_TextContent(), RevisionDbTestBase::testGetContentUncloned(), WikitextContentHandlerTest::testGetDeletionUpdates(), FileBackendTest::testGetFileContents(), FileBackendTest::testGetFileHttpUrl(), FileBackendTest::testGetFileStat(), HttpErrorTest::testGetHtml(), FileBackendTest::testGetLocalCopy(), FileBackendTest::testGetLocalReference(), CssContentTest::testGetModel(), JavaScriptContentTest::testGetModel(), TextContentTest::testGetModel(), TextContentTest::testGetNativeData(), TextContentTest::testGetParserOutput(), PageArchiveTestBase::testGetPreviousRevision(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRecentChange(), TextContentTest::testGetRedirectTarget(), CssContentTest::testGetRedirectTarget(), JavaScriptContentTest::testGetRedirectTarget(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRevisionById(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRevisionByPageId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRevisionByTimestamp(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testGetRevisionByTitle(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_multi(), MediaWiki\Tests\Revision\RenderedRevisionTest::testGetRevisionParserOutput_previewWithSelfTransclusion(), WikitextContentTest::testGetSecondaryDataUpdates(), WikitextContentHandlerTest::testGetSecondaryDataUpdates(), TextContentTest::testGetSize(), TextContentTest::testGetText(), TextContentTest::testGetTextForSearchIndex(), TextContentTest::testGetTextForSummary(), TextContentTest::testGetWikitextForTransclusion(), ApiLoginTest::testGotCookie(), WikitextContentTest::testHadSignature(), MediaWiki\Tests\Revision\SlotRecordTest::testInvalidConstruction(), TextContentTest::testIsCountable(), TextContentTest::testIsEmpty(), TextContentTest::testIsRedirect(), ContentHandlerTest::testMakeContent(), JsonContentHandlerTest::testMakeEmptyContent(), WikitextContentHandlerTest::testMakeEmptyContent(), ContentHandlerSanityTest::testMakeEmptyContent(), CssContentHandlerTest::testMakeRedirectContent(), JavaScriptContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMakeRedirectContent(), JavaScriptContentTest::testMatchMagicWord(), RevisionDbTestBase::testNewFromPageIdWithNotLatestId(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::testNewMutableRevisionFromArray(), TextContentTest::testPreloadTransform(), WikiPageDbTestBase::testPrepareContentForEdit(), TextContentTest::testPreSaveTransform(), RefreshLinksPartitionTest::testRefreshLinks(), WikitextContentHandlerTest::testSerializeContent(), MWHttpRequestTestCase::testSetCallback(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::testSetGetMainContent(), FileBackendTest::testStreamFile(), WikitextContentHandlerTest::testUnserializeContent(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), JavaScriptContentTest::testUpdateRedirect(), ArticleViewTest::testViewNonText(), Xml::textarea(), EditPage::toEditContent(), EditPage::toEditText(), PageArchive::undeleteRevisions(), MessageCache::updateMessageOverride(), WikiPage::updateRevisionOn(), PopulateRevisionLength::upgradeRow(), wfThumbError(), OOUIHTMLForm::wrapForm(), and XmlDumpWriter::writeRevision().

◆ $newRev

◆ $parent

◆ automatically

In both all secondary updates will be triggered automatically
Initial value:
This document provides an overview of the usage of PageUpdater and DerivedPageDataUpdater

Definition at line 76 of file pageupdater.txt.

◆ cases

In both cases

Definition at line 76 of file pageupdater.txt.

◆ creation

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during or when puring a page It s a stepping stone on the way to a more complete refactoring of WikiPage we want to define interfaces for the different use cases of particularly providing access to post PST content and ParserOutput to callbacks during revision creation

Definition at line 89 of file pageupdater.txt.

◆ data

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that data

Definition at line 80 of file pageupdater.txt.

◆ DerivedPageDataUpdater

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during or when puring a page It s a stepping stone on the way to a more complete refactoring of WikiPage we want to define interfaces for the different use cases of DerivedPageDataUpdater
Initial value:
== PageUpdater ==
PageUpdater is the canonical way to create page revisions

Definition at line 1 of file pageupdater.txt.

◆ import

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during or when puring a page It s a stepping stone on the way to a more complete refactoring of WikiPage we want to define interfaces for the different use cases of particularly providing access to post PST content and ParserOutput to callbacks during revision which currently use and allowing updates to be triggered on import

Definition at line 84 of file pageupdater.txt.

◆ is

This document provides an overview of the usage of PageUpdater and that is

Definition at line 4 of file pageupdater.txt.

◆ NOTE

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during or when puring a page It s a stepping stone on the way to a more complete refactoring of WikiPage NOTE

Definition at line 87 of file pageupdater.txt.

Referenced by TextContent::copy().

◆ page_props

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links page_props

Definition at line 81 of file pageupdater.txt.

◆ ParserCache

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the ParserCache

Definition at line 81 of file pageupdater.txt.

◆ purge

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during or when puring a page It s a stepping stone on the way to a more complete refactoring of WikiPage we want to define interfaces for the different use cases of particularly providing access to post PST content and ParserOutput to callbacks during revision which currently use and allowing updates to be triggered on purge

Definition at line 90 of file pageupdater.txt.

Referenced by CdnCacheUpdate::doUpdate(), and PurgePage::execute().

◆ revision

string $mTimestamp Timestamp of the ParserOutput::revision

Definition at line 80 of file pageupdater.txt.

◆ revisions

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new revisions

Definition at line 83 of file pageupdater.txt.

◆ stateful

This document provides an overview of the usage of PageUpdater and that to perform edits PageUpdater is a stateful

Definition at line 6 of file pageupdater.txt.

◆ tables

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links tables

◆ undeletion

In both all secondary updates will be triggered handle like object that caches derived data representing a and can trigger updates of cached copies of that e g in the links the and the CDN layer DerivedPageDataUpdater is used by PageUpdater when creating new but can also be used independently when performing meta data updates during or when puring a page It s a stepping stone on the way to a more complete refactoring of WikiPage we want to define interfaces for the different use cases of particularly providing access to post PST content and ParserOutput to callbacks during revision which currently use and allowing updates to be triggered on and undeletion

Definition at line 84 of file pageupdater.txt.