MediaWiki master
PreparedUpdate.php
Go to the documentation of this file.
1<?php
2namespace MediaWiki\Storage;
3
4use Content;
9
22interface PreparedUpdate {
23
29 public function getPage(): PageIdentity;
30
40 public function getRawContent( string $role ): Content;
41
47 public function isCountable(): bool;
48
54 public function isRedirect(): bool;
55
62 public function getRevision(): RevisionRecord;
63
71
80 public function getModifiedSlotRoles(): array;
81
87 public function getRemovedSlotRoles(): array;
88
98
112
113}
ParserOutput is a rendering of a Content object or a message.
RenderedRevision represents the rendered representation of a revision.
Page revision base class.
Base interface for representing page content.
Definition Content.php:37
Interface for objects (potentially) representing an editable wiki page.
An object representing a page update during an edit.
getRevision()
Returns the update's target revision - that is, the revision that will be the current revision after ...
getRawContent(string $role)
Returns the content of the given slot, with no audience checks.
getModifiedSlotRoles()
Returns the role names of the slots added or updated by the new revision.
getRemovedSlotRoles()
Returns the role names of the slots removed by the new revision.
isCountable()
Whether the page will be countable after the edit.
getRenderedRevision()
Returns a RenderedRevision instance acting as a lazy holder for the ParserOutput of the revision.
getPage()
Returns the identity of the page being updated.
getCanonicalParserOutput()
Returns the canonical parser output.
isRedirect()
Whether the page will be a redirect after the edit.
getParserOutputForMetaData()
Returns the canonical parser output without requiring rendering.