MediaWiki REL1_35
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.
 
static getAutopromoteOnceGroups (User $user, $event)
 Get the groups for the given user based on the given criteria.
 

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. Use UserGroupManager::getUserAutopromoteGroups.

Definition at line 40 of file Autopromote.php.

Referenced by UserrightsPage\showEditUserGroupsForm().

◆ 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. Use UserGroupManager::getUserAutopromoteOnceGroups.

Definition at line 61 of file Autopromote.php.


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