MediaWiki REL1_39
MediaWiki\Revision\ContributionsLookup Class Reference

Public Member Functions

 __construct (RevisionStore $revisionStore, LinkRendererFactory $linkRendererFactory, LinkBatchFactory $linkBatchFactory, HookContainer $hookContainer, ILoadBalancer $loadBalancer, ActorMigration $actorMigration, NamespaceInfo $namespaceInfo, CommentFormatter $commentFormatter)
 
 getContributionCount (UserIdentity $user, Authority $performer, $tag=null)
 Returns the number of edits by the given user.
 
 getContributions (UserIdentity $target, int $limit, Authority $performer, string $segment='', string $tag=null)
 

Detailed Description

Since
1.35

Definition at line 24 of file ContributionsLookup.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Revision\ContributionsLookup::__construct ( RevisionStore  $revisionStore,
LinkRendererFactory  $linkRendererFactory,
LinkBatchFactory  $linkBatchFactory,
HookContainer  $hookContainer,
ILoadBalancer  $loadBalancer,
ActorMigration  $actorMigration,
NamespaceInfo  $namespaceInfo,
CommentFormatter  $commentFormatter 
)
Parameters
RevisionStore$revisionStore
LinkRendererFactory$linkRendererFactory
LinkBatchFactory$linkBatchFactory
HookContainer$hookContainer
ILoadBalancer$loadBalancer
ActorMigration$actorMigration
NamespaceInfo$namespaceInfo
CommentFormatter$commentFormatter

Definition at line 60 of file ContributionsLookup.php.

Member Function Documentation

◆ getContributionCount()

MediaWiki\Revision\ContributionsLookup::getContributionCount ( UserIdentity  $user,
Authority  $performer,
  $tag = null 
)

Returns the number of edits by the given user.

Parameters
UserIdentity$user
Authority$performerthe user used for permission checks
string | null$tag
Returns
int

Definition at line 243 of file ContributionsLookup.php.

◆ getContributions()

MediaWiki\Revision\ContributionsLookup::getContributions ( UserIdentity  $target,
int  $limit,
Authority  $performer,
string  $segment = '',
string  $tag = null 
)
Parameters
UserIdentity$targetthe user from whom to retrieve contributions
int$limitthe maximum number of revisions to return
Authority$performerthe user used for permission checks
string$segment
string | null$tag
Returns
ContributionsSegment
Exceptions

\MWException

Definition at line 124 of file ContributionsLookup.php.


The documentation for this class was generated from the following file: