MediaWiki REL1_37
|
@newable More...
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. | |
Private Attributes | |
string null | $after |
string null | $before |
array | $deltas |
array | $flags |
RevisionRecord[] | $revisions |
string[][] | $tags |
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.
References MediaWiki\Revision\ContributionsSegment\$after, MediaWiki\Revision\ContributionsSegment\$before, MediaWiki\Revision\ContributionsSegment\$deltas, MediaWiki\Revision\ContributionsSegment\$flags, MediaWiki\Revision\ContributionsSegment\$revisions, and MediaWiki\Revision\ContributionsSegment\$tags.
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.
Referenced by MediaWiki\Rest\Handler\UserContributionsHandler\getContributionsList().
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.
Referenced by MediaWiki\Rest\Handler\UserContributionsHandler\getContributionsList().
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.
|
private |
Definition at line 31 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 26 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 36 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 41 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 16 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 21 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().