MediaWiki REL1_35
Autopromote.php
Go to the documentation of this file.
1<?php
25
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}
This class checks if user can get extra rights because of conditions specified in $wgAutopromote.
static getAutopromoteOnceGroups(User $user, $event)
Get the groups for the given user based on the given criteria.
static getAutopromoteGroups(User $user)
Get the groups for the given user based on $wgAutopromote.
MediaWikiServices is the service locator for the application scope of MediaWiki.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:60