MediaWiki REL1_35
|
@newable More...
Public Member Functions | |
__construct (array $revisions, array $tags, ?string $before, ?string $after, array $deltas=[], array $flags=[]) | |
ContributionsSegment constructor. | |
getAfter () | |
getBefore () | |
getDeltaForRevision (int $revid) | |
Returns the difference in size of the given revision and its parent revision. | |
getRevisions () | |
getTagsForRevision ( $revId) | |
Returns an associative array mapping revision IDs to lists of tag names. | |
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 = [] |
||
) |
ContributionsSegment constructor.
RevisionRecord[] | $revisions | |
string[][] | $tags | An associative array mapping revision IDs to lists of tag names. |
string | null | $before | |
string | null | $after | |
array | $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.
Referenced by MediaWiki\Rest\Handler\UserContributionsHandler\constructURLs().
MediaWiki\Revision\ContributionsSegment::getBefore | ( | ) |
Definition at line 91 of file ContributionsSegment.php.
Referenced by MediaWiki\Rest\Handler\UserContributionsHandler\constructURLs().
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\getRevisionsList().
MediaWiki\Revision\ContributionsSegment::getRevisions | ( | ) |
Definition at line 84 of file ContributionsSegment.php.
MediaWiki\Revision\ContributionsSegment::getTagsForRevision | ( | $revId | ) |
Returns an associative array mapping revision IDs to lists of tag names.
int | $revId | a revision ID |
Definition at line 77 of file ContributionsSegment.php.
Referenced by MediaWiki\Rest\Handler\UserContributionsHandler\getRevisionsList().
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.
Referenced by MediaWiki\Rest\Handler\UserContributionsHandler\constructURLs().
|
private |
Definition at line 29 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 24 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 34 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 39 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 14 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().
|
private |
Definition at line 19 of file ContributionsSegment.php.
Referenced by MediaWiki\Revision\ContributionsSegment\__construct().