MediaWiki
REL1_39
PreparedUpdate.php
Go to the documentation of this file.
1
<?php
2
namespace
MediaWiki\Storage
;
3
4
use
Content
;
5
use
MediaWiki\Page\PageIdentity
;
6
use
MediaWiki\Revision\RenderedRevision
;
7
use
MediaWiki\Revision\RevisionRecord
;
8
use
ParserOutput
;
9
22
interface
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
70
public
function
getRenderedRevision
():
RenderedRevision
;
71
80
public
function
getModifiedSlotRoles
(): array;
81
87
public
function
getRemovedSlotRoles
(): array;
88
97
public
function
getCanonicalParserOutput
():
ParserOutput
;
98
111
public
function
getParserOutputForMetaData
():
ParserOutput
;
112
113
}
MediaWiki\Revision\RenderedRevision
RenderedRevision represents the rendered representation of a revision.
Definition
RenderedRevision.php:45
MediaWiki\Revision\RevisionRecord
Page revision base class.
Definition
RevisionRecord.php:47
ParserOutput
Definition
ParserOutput.php:38
Content
Base interface for content objects.
Definition
Content.php:35
MediaWiki\Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition
PageIdentity.php:64
MediaWiki\Storage\PreparedUpdate
An object representing a page update during an edit.
Definition
PreparedUpdate.php:22
MediaWiki\Storage\PreparedUpdate\getRevision
getRevision()
Returns the update's target revision - that is, the revision that will be the current revision after ...
MediaWiki\Storage\PreparedUpdate\getRawContent
getRawContent(string $role)
Returns the content of the given slot, with no audience checks.
MediaWiki\Storage\PreparedUpdate\getModifiedSlotRoles
getModifiedSlotRoles()
Returns the role names of the slots added or updated by the new revision.
MediaWiki\Storage\PreparedUpdate\getRemovedSlotRoles
getRemovedSlotRoles()
Returns the role names of the slots removed by the new revision.
MediaWiki\Storage\PreparedUpdate\isCountable
isCountable()
Whether the page will be countable after the edit.
MediaWiki\Storage\PreparedUpdate\getRenderedRevision
getRenderedRevision()
Returns a RenderedRevision instance acting as a lazy holder for the ParserOutput of the revision.
MediaWiki\Storage\PreparedUpdate\getPage
getPage()
Returns the identity of the page being updated.
MediaWiki\Storage\PreparedUpdate\getCanonicalParserOutput
getCanonicalParserOutput()
Returns the canonical parser output.
MediaWiki\Storage\PreparedUpdate\isRedirect
isRedirect()
Whether the page will be a redirect after the edit.
MediaWiki\Storage\PreparedUpdate\getParserOutputForMetaData
getParserOutputForMetaData()
Returns the canonical parser output without requiring rendering.
MediaWiki\Storage
Definition
BlobAccessException.php:23
includes
Storage
PreparedUpdate.php
Generated on Fri Dec 20 2024 15:35:34 for MediaWiki by
1.10.0