Manual:RevisionRecord.php
MediaWiki file: RevisionRecord.php | |
---|---|
Location: | includes/Revision/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
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
editMediaWikiServices->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.