final class UberuserChange (View source)

A pending change that can take super admin away from users, described so the repository can count who would still hold it once the change is written.

Methods

static UberuserChange
none()

No change: counts the super admins there are now.

static UberuserChange
templateDropsUberuser(int $templateId)

The template stops granting user_is_ueberuser.

static UberuserChange
groupDeleted(int $groupId)

The group goes, and its memberships with it.

static UberuserChange
memberRemoved(int $groupId, int $userId)

The user leaves the group.

static UberuserChange
groupTemplateChanged(int $groupId, int $templateId)

The group moves to another permission template.

Details

static UberuserChange none()

No change: counts the super admins there are now.

Return Value

UberuserChange

static UberuserChange templateDropsUberuser(int $templateId)

The template stops granting user_is_ueberuser.

Parameters

int $templateId

Return Value

UberuserChange

static UberuserChange groupDeleted(int $groupId)

The group goes, and its memberships with it.

Parameters

int $groupId

Return Value

UberuserChange

static UberuserChange memberRemoved(int $groupId, int $userId)

The user leaves the group.

Parameters

int $groupId
int $userId

Return Value

UberuserChange

static UberuserChange groupTemplateChanged(int $groupId, int $templateId)

The group moves to another permission template.

Parameters

int $groupId
int $templateId

Return Value

UberuserChange