MediaWiki
master
|
Public Member Functions | |
__construct (RevisionStore $revisionStore, LinkRenderer $linkRenderer, LinkBatchFactory $linkBatchFactory, HookContainer $hookContainer, ILoadBalancer $loadBalancer, ActorMigration $actorMigration, NamespaceInfo $namespaceInfo) | |
getContributionCount (UserIdentity $user, Authority $performer, $tag=null) | |
Returns the number of edits by the given user. More... | |
getContributions (UserIdentity $target, int $limit, Authority $performer, string $segment='', string $tag=null) | |
Private Member Functions | |
getContribsPager (IContextSource $context, array $options) | |
getContributionDeltas ( $revisions) | |
Gets size deltas of a revision and its parent revision. More... | |
getContributionTags (array $tagNames) | |
getPagerParams (int $limit, string $segment) | |
Constructs fake query parameters to be passed to ContribsPager. More... | |
Private Attributes | |
ActorMigration | $actorMigration |
HookContainer | $hookContainer |
LinkBatchFactory | $linkBatchFactory |
LinkRenderer | $linkRenderer |
ILoadBalancer | $loadBalancer |
NamespaceInfo | $namespaceInfo |
RevisionStore | $revisionStore |
Definition at line 23 of file ContributionsLookup.php.
Revision\ContributionsLookup::__construct | ( | RevisionStore | $revisionStore, |
LinkRenderer | $linkRenderer, | ||
LinkBatchFactory | $linkBatchFactory, | ||
HookContainer | $hookContainer, | ||
ILoadBalancer | $loadBalancer, | ||
ActorMigration | $actorMigration, | ||
NamespaceInfo | $namespaceInfo | ||
) |
RevisionStore | $revisionStore | |
LinkRenderer | $linkRenderer | |
LinkBatchFactory | $linkBatchFactory | |
HookContainer | $hookContainer | |
ILoadBalancer | $loadBalancer | |
ActorMigration | $actorMigration | |
NamespaceInfo | $namespaceInfo |
Definition at line 55 of file ContributionsLookup.php.
References Revision\ContributionsLookup\$actorMigration, Revision\ContributionsLookup\$hookContainer, Revision\ContributionsLookup\$linkBatchFactory, Revision\ContributionsLookup\$linkRenderer, Revision\ContributionsLookup\$loadBalancer, Revision\ContributionsLookup\$namespaceInfo, and Revision\ContributionsLookup\$revisionStore.
|
private |
Definition at line 263 of file ContributionsLookup.php.
References MediaWiki\$context.
Referenced by Revision\ContributionsLookup\getContributionCount(), and Revision\ContributionsLookup\getContributions().
Revision\ContributionsLookup::getContributionCount | ( | UserIdentity | $user, |
Authority | $performer, | ||
$tag = null |
|||
) |
Returns the number of edits by the given user.
UserIdentity | $user | |
Authority | $performer | the user used for permission checks |
string | null | $tag |
Definition at line 238 of file ContributionsLookup.php.
References MediaWiki\$context, and Revision\ContributionsLookup\getContribsPager().
|
private |
Gets size deltas of a revision and its parent revision.
RevisionRecord[] | $revisions |
Definition at line 204 of file ContributionsLookup.php.
Referenced by Revision\ContributionsLookup\getContributions().
Revision\ContributionsLookup::getContributions | ( | UserIdentity | $target, |
int | $limit, | ||
Authority | $performer, | ||
string | $segment = '' , |
||
string | $tag = null |
||
) |
UserIdentity | $target | the user from whom to retrieve contributions |
int | $limit | the maximum number of revisions to return |
Authority | $performer | the user used for permission checks |
string | $segment | |
string | null | $tag |
Definition at line 118 of file ContributionsLookup.php.
References MediaWiki\$context, Revision\ContributionsLookup\getContribsPager(), Revision\ContributionsLookup\getContributionDeltas(), Revision\ContributionsLookup\getContributionTags(), and Revision\ContributionsLookup\getPagerParams().
|
private |
string[] | $tagNames | Array of tag names |
Definition at line 186 of file ContributionsLookup.php.
References RequestContext\getMain(), and ChangeTags\tagShortDescriptionMessage().
Referenced by Revision\ContributionsLookup\getContributions().
|
private |
Constructs fake query parameters to be passed to ContribsPager.
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(). |
Definition at line 84 of file ContributionsLookup.php.
Referenced by Revision\ContributionsLookup\getContributions().
|
private |
Definition at line 41 of file ContributionsLookup.php.
Referenced by Revision\ContributionsLookup\__construct().
|
private |
Definition at line 35 of file ContributionsLookup.php.
Referenced by Revision\ContributionsLookup\__construct().
|
private |
Definition at line 32 of file ContributionsLookup.php.
Referenced by Revision\ContributionsLookup\__construct().
|
private |
Definition at line 29 of file ContributionsLookup.php.
Referenced by Revision\ContributionsLookup\__construct().
|
private |
Definition at line 38 of file ContributionsLookup.php.
Referenced by Revision\ContributionsLookup\__construct().
|
private |
Definition at line 44 of file ContributionsLookup.php.
Referenced by Revision\ContributionsLookup\__construct().
|
private |
Definition at line 26 of file ContributionsLookup.php.
Referenced by Revision\ContributionsLookup\__construct().