MediaWiki REL1_39
|
Public Member Functions | |
__construct (array $revisions, array $tags, ?string $before, ?string $after, array $deltas=[], array $flags=[]) | |
getAfter () | |
getBefore () | |
getDeltaForRevision (int $revid) | |
Returns the difference in size of the given revision and its parent revision. | |
getRevisions () | |
getTagsForRevision ( $revId) | |
Get tags and associated metadata for a given revision. | |
isNewest () | |
The value of the 'newest' field of the flags passed to the constructor, or false if that field was not set. | |
isOldest () | |
The value of the 'oldest' field of the flags passed to the constructor, or false if that field was not set. | |
MediaWiki\Revision\ContributionsSegment::__construct | ( | array | $revisions, |
array | $tags, | ||
?string | $before, | ||
?string | $after, | ||
array | $deltas = [], | ||
array | $flags = [] ) |
RevisionRecord[] | $revisions | |
string[][] | $tags | Associative array mapping revision IDs to a map of tag names to Message objects |
string | null | $before | |
string | null | $after | |
int[] | $deltas | An associative array mapping a revision Id to the difference in size of this revision and its parent revision. Values may be null if the size difference is unknown. |
array | $flags | Is an associative array, known fields are:
|
Definition at line 54 of file ContributionsSegment.php.
MediaWiki\Revision\ContributionsSegment::getAfter | ( | ) |
Definition at line 98 of file ContributionsSegment.php.
MediaWiki\Revision\ContributionsSegment::getBefore | ( | ) |
Definition at line 91 of file ContributionsSegment.php.
MediaWiki\Revision\ContributionsSegment::getDeltaForRevision | ( | int | $revid | ) |
Returns the difference in size of the given revision and its parent revision.
Returns null if the size difference is unknown.
int | $revid | Revision id |
Definition at line 108 of file ContributionsSegment.php.
MediaWiki\Revision\ContributionsSegment::getRevisions | ( | ) |
Definition at line 84 of file ContributionsSegment.php.
MediaWiki\Revision\ContributionsSegment::getTagsForRevision | ( | $revId | ) |
Get tags and associated metadata for a given revision.
int | $revId | a revision ID |
Definition at line 77 of file ContributionsSegment.php.
MediaWiki\Revision\ContributionsSegment::isNewest | ( | ) |
The value of the 'newest' field of the flags passed to the constructor, or false if that field was not set.
Definition at line 118 of file ContributionsSegment.php.
MediaWiki\Revision\ContributionsSegment::isOldest | ( | ) |
The value of the 'oldest' field of the flags passed to the constructor, or false if that field was not set.
Definition at line 128 of file ContributionsSegment.php.