MediaWiki  master
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 isstateful
 
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(), ContentHandler::__construct(), ParserTestRunner::addArticle(), OutputPage::addContentOverride(), ApiComparePagesTest::addPage(), InfoAction::addTable(), EditPageTest::assertEdit(), ResourceLoaderModule::buildContent(), CleanupSpam::cleanupArticle(), MediaWiki\Storage\PageUpdater::computeEffectiveTags(), Installer::createMainpage(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::createMockContent(), WikiPageDbTestBase::createMockContent(), WikiPageDbTestBase::createPage(), RevisionDbTestBase::createPage(), PagePropsTest::createPage(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::createRevision(), MediaWiki\Tests\Storage\PageUpdaterTest::createRevision(), EditPage::displayPermissionsError(), ApiQueryWatchlistIntegrationTest::doAnonPageEdit(), ApiQueryWatchlistIntegrationTest::doBotPageEdit(), WikiPage::doDeleteArticleBatched(), Article::doDeleteUpdates(), WikiPage::doDeleteUpdates(), DifferenceEngineTest::doEdits(), ApiQueryWatchlistIntegrationTest::doMinorPageEdit(), ApiQueryWatchlistIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), FileBackendTest::doTestGetFileContents(), FileBackendTest::doTestGetFileHttpUrl(), FileBackendTest::doTestGetFileStat(), FileBackendTest::doTestGetLocalCopy(), FileBackendTest::doTestGetLocalReference(), FileBackendTest::doTestStreamFile(), FileBackendTest::doTestStreamFileRange(), Revision\RevisionStore::emulateMainSlot_1_29(), ApiEditPage::execute(), ViewCLI::execute(), BenchmarkJavaScriptMinifier::execute(), BenchmarkJSMinPlus::execute(), MakeTestEdits::execute(), GetTextMaint::execute(), ImportSiteScripts::execute(), DumpRev::execute(), ApiStashEdit::execute(), EditCLI::execute(), Parser::extensionSubstitution(), ApiQueryRevisionsBase::extractRevisionInfo(), ApiQueryRevisionsBase::extractSlotInfo(), Parser::extractTagsAndParams(), ApiFeedContributions::feedItemDesc(), SpecialNewpages::feedItemDesc(), Xml::fieldset(), WikiImporter::finishImportPage(), RefreshLinks::fixRedirect(), FormatMetadata::flattenArrayReal(), CoreTagHooks::gallery(), AutoloadGenerator::generatePHPAutoload(), BaseTemplate::getAfterPortlet(), FindHooks::getBadHooksFromFile(), MediaWiki\Widget\CheckMatrixWidget::getCellTag(), ResourceLoaderWikiModule::getContent(), Revision\RevisionRecord::getContent(), ResourceLoaderWikiModule::getContentObj(), Article::getContentObject(), EditPage::getContentObject(), ContentHandler::getContentText(), EditPage::getCurrentContent(), Article::getDeletionUpdates(), WikiPage::getDeletionUpdates(), ApiComparePages::getDiffRevision(), Article::getEmptyPageParserOutput(), FindHooks::getHooksFromFile(), FindHooks::getHooksFromLocalDoc(), ChangeTagsRevisionItem::getHTML(), ChangeTagsLogItem::getHTML(), RevDelRevisionItem::getHTML(), BaseTemplate::getIndicators(), PageArchive::getLastRevisionText(), MessageCache::getMessageTextFromContent(), PNGMetadataExtractor::getMetadata(), MediaWiki\Tests\Revision\RenderedRevisionTest::getMockRevision(), EditPage::getOriginalContent(), WikitextStructureTest::getParserOutput(), EditPage::getPreloadedContent(), EditPage::getPreviewText(), RawAction::getRawText(), MediaWiki\Sparql\SparqlClientTest::getRequestMock(), LogFormatter::getRestrictedElement(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase::getRevisionRecordFromDetailsArray(), Article::getRevisionRedirectTarget(), Revision::getRevisionText(), OutputPage::getRlClientContext(), MediaWiki\Storage\DerivedPageDataUpdater::getSecondaryDataUpdates(), BaseTemplate::getSidebar(), DifferenceEngine::getSlotDiffRenderers(), Revision\RenderedRevision::getSlotParserOutput(), 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(), MediaWiki\Storage\DerivedPageDataUpdater::isCountable(), WikiPage::isCountable(), MovePage::isValidMoveTarget(), Title::isValidMoveTarget(), JobRunner::loadBackoffs(), MessageCache::loadCachedMessagePageEntry(), Benchmarker::loadFile(), Revision\RevisionStore::loadSlotContent(), MediaWiki\Storage\PageUpdater::makeAutoSummary(), ResourceLoader::makeModuleResponse(), MediaWiki\Storage\PageUpdater::makeNewRevision(), MessageCacheTest::makePage(), MediaWiki\Storage\RevisionSlotsUpdate::newFromContent(), Revision\RevisionStore::newMutableRevisionFromArray(), RevisionDbTestBase::newTestRevision(), CoreTagHooks::nowiki(), InfoAction::onView(), HistoryAction::onView(), SpecialUploadStash::outputContents(), RebuildTextIndex::populateSearchIndex(), CoreTagHooks::pre(), MediaWiki\Storage\DerivedPageDataUpdater::prepareContent(), PreprocessDump::processRevision(), CompareParsers::processRevision(), RevisionDbTestBase::provideInsertOn_exceptionOnIncomplete(), MediaWiki\Tests\Revision\MutableRevisionRecordTest::provideNotReadyForInsertion(), FileBackendTest::provider_testConcatenate(), ApiFormatXml::recXmlPrint(), Parser::replaceTransparentTags(), DoubleRedirectJob::run(), BenchmarkParse::runParser(), ParserTestRunner::runTest(), ParserOutput::setIndicator(), EditPage::setPreloadedContent(), SpecialRecentChanges::setTopText(), PageArchiveTestBase::setUp(), ParserOptions::setupFakeRevision(), MediaWiki\Tests\Maintenance\BaseDumpTest::setUpPrefetch(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest::setUpStub(), EditPage::showEditForm(), SpecialBookSources::showList(), SpecialUndelete::showRevision(), Parser::statelessFetchTemplate(), Revision\RevisionStore::storeContentBlob(), LogFormatter::styleRestricedElement(), JobRunner::syncBackoffDeltas(), JavaScriptContentTest::testAddSectionHeader(), ArticleViewTest::testArticleAfterFetchContentObjectHook(), ArticleViewTest::testArticleContentViewCustomHook(), ArticleViewTest::testArticleRevisionViewCustomHook(), MediaWiki\Tests\Revision\SlotRecordTest::testConstructionDeferred(), TextContentTest::testCopy(), MediaWiki\Tests\Storage\PageUpdaterTest::testCreatePage(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), TextContentTest::testDeletionUpdates(), WikiPageDbTestBase::testDoEditContent(), WikiPageDbTestBase::testDoEditContent_twice(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest::testDoUpdates(), PoolWorkArticleViewTest::testDoWorkWithContent(), ApiEditPageTest::testEditAppend(), ContentHandlerTest::testGetAutosummary(), MediaWiki\Tests\Revision::testGetContent(), WikiPageDbTestBase::testGetContent(), RevisionTest::testGetContent(), RevisionDbTestBase::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(), CssContentTest::testGetRedirectTarget(), TextContentTest::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::testGetTextForSearchIndex(), TextContentTest::testGetTextForSummary(), TextContentTest::testGetWikitextForTransclusion(), ApiLoginTest::testGotCookie(), WikitextContentTest::testHadSignature(), MediaWiki\Tests\Revision\SlotRecordTest::testInvalidConstruction(), TextContentTest::testIsCountable(), TextContentTest::testIsEmpty(), TextContentTest::testIsRedirect(), ContentHandlerTest::testMakeContent(), JsonContentHandlerTest::testMakeEmptyContent(), ContentHandlerSanityTest::testMakeEmptyContent(), WikitextContentHandlerTest::testMakeEmptyContent(), JavaScriptContentHandlerTest::testMakeRedirectContent(), CssContentHandlerTest::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(), and OOUIHTMLForm::wrapForm().

◆ $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: pageupdater.txt:3
This document provides an overview of the usage of PageUpdater and that is
Definition: pageupdater.txt:3
This document provides an overview of the usage of PageUpdater and that to perform edits PageUpdater is a stateful
Definition: pageupdater.txt:3

Definition at line 78 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 78 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 78 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
target page
This document provides an overview of the usage of PageUpdater and that is
Definition: pageupdater.txt:3
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: pageupdater.txt:78

Definition at line 3 of file pageupdater.txt.

Referenced by WikiPage::newDerivedDataUpdater().

◆ 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 78 of file pageupdater.txt.

◆ is

◆ 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 78 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 78 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 78 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 78 of file pageupdater.txt.

Referenced by CdnCacheUpdate::doUpdate().

◆ revision

string $mTimestamp Timestamp of the ParserOutput::revision

Definition at line 78 of file pageupdater.txt.

Referenced by RevDelRevisionItem::__construct(), PopulateIpChanges::__construct(), CategoryMembershipChange::__construct(), PoolWorkArticleView::__construct(), RevisionItem::__construct(), MediaWiki\Storage\DerivedPageDataUpdater::assertHasRevision(), MediaWiki\Storage\DerivedPageDataUpdater::assertPrepared(), RevDelRevisionItem::canView(), RevisionItem::canView(), RevDelRevisionItem::canViewContent(), RevisionItem::canViewContent(), MediaWiki\Storage\DerivedPageDataUpdater::doParserCacheUpdate(), MediaWiki\Storage\DerivedPageDataUpdater::doSecondaryDataUpdates(), MediaWiki\Storage\DerivedPageDataUpdater::doUpdates(), PoolWorkArticleView::doWork(), RevDelRevisionItem::getBits(), RevDelArchiveItem::getDiffLink(), RevDelRevisionItem::getDiffLink(), RevisionItem::getDiffLink(), ChangeTagsRevisionItem::getHTML(), RevDelRevisionItem::getHTML(), RevisionItem::getHTML(), RevDelArchivedRevisionItem::getId(), RevDelArchiveItem::getId(), MediaWiki\Storage\DerivedPageDataUpdater::getParentRevision(), MediaWiki\Storage\DerivedPageDataUpdater::getPreparedEdit(), ImportTest::getRedirectXML(), RevDelArchiveItem::getRevisionLink(), RevDelRevisionItem::getRevisionLink(), RevisionItem::getRevisionLink(), MediaWiki\Storage\DerivedPageDataUpdater::getRevisionSlotsUpdate(), Revision\RenderedRevision::getSlotParserOutput(), Revision\RenderedRevision::getSlotParserOutputUncached(), MediaWiki\Storage\DerivedPageDataUpdater::getSlots(), ImportTest::getUnknownTagsXML(), CategoryMembershipChange::getUser(), Revision\RenderedRevision::isContentDeleted(), MediaWiki\Storage\DerivedPageDataUpdater::isContentDeleted(), MediaWiki\Storage\DerivedPageDataUpdater::isContentPrepared(), RevDelRevisionItem::isDeleted(), RevisionItem::isDeleted(), MediaWiki\Storage\DerivedPageDataUpdater::isReusableFor(), MediaWiki\Storage\DerivedPageDataUpdater::isUpdatePrepared(), CategoryMembershipChange::notifyCategorization(), MediaWiki\Storage\DerivedPageDataUpdater::prepareContent(), MediaWiki\Storage\DerivedPageDataUpdater::prepareUpdate(), RevDelRevisionItem::setBits(), Revision\RenderedRevision::setRevisionInternal(), Revision\RenderedRevision::setRevisionParserOutput(), ImportTest::testUnknownUserHandling(), and Revision\RenderedRevision::updateRevision().

◆ 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 78 of file pageupdater.txt.

Referenced by HistoryPager::doBatchLookups().

◆ stateful

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

Definition at line 3 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 78 of file pageupdater.txt.