MediaWiki  master
Autopromote Class Reference

This class checks if user can get extra rights because of conditions specified in $wgAutopromote. More...

Static Public Member Functions

static getAutopromoteGroups (User $user)
 Get the groups for the given user based on $wgAutopromote. More...
 
static getAutopromoteOnceGroups (User $user, $event)
 Get the groups for the given user based on the given criteria. More...
 

Detailed Description

This class checks if user can get extra rights because of conditions specified in $wgAutopromote.

Deprecated:
since 1.35 Use UserGroupManager instead.

Definition at line 31 of file Autopromote.php.

Member Function Documentation

◆ getAutopromoteGroups()

static Autopromote::getAutopromoteGroups ( User  $user)
static

Get the groups for the given user based on $wgAutopromote.

Parameters
User$userThe user to get the groups for
Returns
array Array of groups to promote to.
Deprecated:
since 1.35 (hard deprecated since 1.36). Use UserGroupManager::getUserAutopromoteGroups.

Definition at line 40 of file Autopromote.php.

References wfDeprecated().

◆ getAutopromoteOnceGroups()

static Autopromote::getAutopromoteOnceGroups ( User  $user,
  $event 
)
static

Get the groups for the given user based on the given criteria.

Does not return groups the user already belongs to or has once belonged.

Parameters
User$userThe user to get the groups for
string$eventKey in $wgAutopromoteOnce (each one has groups/criteria)
Returns
array Groups the user should be promoted to.
See also
$wgAutopromoteOnce
Deprecated:
since 1.35 (hard deprecated since 1.36). Use UserGroupManager::getUserAutopromoteOnceGroups.

Definition at line 63 of file Autopromote.php.

References wfDeprecated().


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