Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionStore Class Reference

Store service for looking up and storing user subscriptions to message group. More...

Public Member Functions

 __construct (IConnectionProvider $dbProvider)
 
 addSubscription (string $groupId, int $userId)
 
 getSubscriptions (?array $groupIds, ?int $userId)
 
 getSubscriptionByGroupUnion (array $groupIds)
 
 removeSubscriptions (string $groupId, int $userId)
 

Detailed Description

Store service for looking up and storing user subscriptions to message group.

Since
2024.04 @license GPL-2.0-or-later
Author
Abijeet Patro

Definition at line 15 of file MessageGroupSubscriptionStore.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionStore::__construct ( IConnectionProvider $dbProvider)

Definition at line 22 of file MessageGroupSubscriptionStore.php.

Member Function Documentation

◆ addSubscription()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionStore::addSubscription ( string $groupId,
int $userId )

Definition at line 26 of file MessageGroupSubscriptionStore.php.

◆ getSubscriptionByGroupUnion()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionStore::getSubscriptionByGroupUnion ( array $groupIds)

Definition at line 62 of file MessageGroupSubscriptionStore.php.

◆ getSubscriptions()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionStore::getSubscriptions ( ?array $groupIds,
?int $userId )

Definition at line 39 of file MessageGroupSubscriptionStore.php.

◆ removeSubscriptions()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionStore::removeSubscriptions ( string $groupId,
int $userId )

Definition at line 75 of file MessageGroupSubscriptionStore.php.


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