BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
Autopromote Class Reference

Static Public Member Functions

static getAutopromoteGroups (User $user)
 
static getAutopromoteOnceGroups (User $user, $event)
 

Detailed Description

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

Member Function Documentation

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.
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

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