Manual:RevisionRecord.php
Appearance
MediaWiki file: RevisionRecord.php | |
---|---|
Location: | includes/Revision/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | MediaWiki\Revision\RevisionRecord |
This file holds the base class for representing page revisions. An instance of RevisionRecord is essentially a value object, but it may use callbacks for lazy loading and its subclasses are not necessarily immutable.
Instantiation
[edit]MediaWikiServices->getRevisionFactory()->newRevisionFromRow() - construct a RevisionRecord given a database row and content slots. See also ::newRevisionFromArchiveRow.
Retrieval
[edit]- ParserOptions::fetchCurrentRevisionRecordOfTitle() - recommended if you have access to the Parser and Title objects.
- WikiPage::getRevisionRecord()
- See the RevisionLookup class for other methods.