- Since
- 1.35
Definition at line 14 of file ContributionsLookup.php.
◆ __construct()
MediaWiki\Revision\ContributionsLookup::__construct |
( |
RevisionStore |
$revisionStore | ) |
|
◆ getContributionCount()
MediaWiki\Revision\ContributionsLookup::getContributionCount |
( |
UserIdentity |
$user, |
|
|
User |
$performer, |
|
|
|
$tag = null |
|
) |
| |
Returns the number of edits by the given user.
- Parameters
-
UserIdentity | $user | |
User | $performer | the user used for permission checks |
string | null | $tag | |
- Returns
- int
Definition at line 177 of file ContributionsLookup.php.
◆ getContributionDeltas()
MediaWiki\Revision\ContributionsLookup::getContributionDeltas |
( |
|
$revisions | ) |
|
|
private |
Gets size deltas of a revision and its parent revision.
- Parameters
-
RevisionRecord[] | $revisions | |
- Returns
- int[] Associative array of revision ids and their deltas. If revision is the first on a page, delta is revision size. If parent revision is unknown, delta is null.
Definition at line 143 of file ContributionsLookup.php.
◆ getContributions()
MediaWiki\Revision\ContributionsLookup::getContributions |
( |
UserIdentity |
$target, |
|
|
int |
$limit, |
|
|
User |
$performer, |
|
|
string |
$segment = '' , |
|
|
string |
$tag = null |
|
) |
| |
- Parameters
-
UserIdentity | $target | the user from whom to retrieve contributions |
int | $limit | the maximum number of revisions to return |
User | $performer | the user used for permission checks |
string | $segment | |
string | null | $tag | |
- Returns
- ContributionsSegment
- Exceptions
-
\MWException
Definition at line 75 of file ContributionsLookup.php.
◆ getPagerParams()
MediaWiki\Revision\ContributionsLookup::getPagerParams |
( |
int |
$limit, |
|
|
string |
$segment |
|
) |
| |
|
private |
Constructs fake query parameters to be passed to ContribsPager.
- Parameters
-
int | $limit | Maximum number of revisions to return. |
string | $segment | Indicates which segment of the contributions to return. The segment should consist of 2 parts separated by a pipe character. The first part is mapped to the 'dir' parameter. The second part is mapped to the 'offset' parameter. The value for the offset is opaque and is ultimately supplied by ContribsPager::getPagingQueries(). |
- Returns
- array
Definition at line 41 of file ContributionsLookup.php.
◆ $revisionStore
RevisionStore MediaWiki\Revision\ContributionsLookup::$revisionStore |
|
private |
The documentation for this class was generated from the following file: