Manual:RevisionRecord.php
From Linux Web Expert
MediaWiki file: RevisionRecord.php | |
---|---|
Location: | includes/Revision/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
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
MediaWikiServices->getRevisionFactory()->newRevisionFromRow() - construct a RevisionRecord given a database row and content slots. See also ::newRevisionFromArchiveRow.
Retrieval
- ParserOptions::fetchCurrentRevisionRecordOfTitle() - recommended if you have access to the Parser and Title objects.
- WikiPage::getRevisionRecord()
- See the RevisionLookup class for other methods.