MediaWiki  master
Autopromote.php
Go to the documentation of this file.
1 <?php
25 
31 class Autopromote {
40  public static function getAutopromoteGroups( User $user ) {
41  return MediaWikiServices::getInstance()
42  ->getUserGroupManager()
43  ->getUserAutopromoteGroups( $user );
44  }
45 
61  public static function getAutopromoteOnceGroups( User $user, $event ) {
62  return MediaWikiServices::getInstance()
63  ->getUserGroupManager()
64  ->getUserAutopromoteOnceGroups( $user, $event );
65  }
66 }
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition: MediaWikiServices.php:154
Autopromote\getAutopromoteGroups
static getAutopromoteGroups(User $user)
Get the groups for the given user based on $wgAutopromote.
Definition: Autopromote.php:40
Autopromote
This class checks if user can get extra rights because of conditions specified in $wgAutopromote.
Definition: Autopromote.php:31
Autopromote\getAutopromoteOnceGroups
static getAutopromoteOnceGroups(User $user, $event)
Get the groups for the given user based on the given criteria.
Definition: Autopromote.php:61
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:55