UserGroupWriterInterface
interface UserGroupWriterInterface (View source)
Creating, updating and deleting groups, plus the counts that guard a delete.
Methods
Delete a group by ID
Get member counts for multiple groups in a single query
Count members in a group
Count zones owned by a group
Set the group's own zone limit; null removes it so the configured default applies
Lock the group's row until the open transaction ends, so zone limit checks for this group run one at a time
Details
bool
delete(int $id)
Delete a group by ID
array
getMemberCountsByGroupIds(array $groupIds)
Get member counts for multiple groups in a single query
int
countMembers(int $groupId)
Count members in a group
int
countZones(int $groupId)
Count zones owned by a group
bool
setZoneLimit(int $groupId, int|null $limit)
Set the group's own zone limit; null removes it so the configured default applies
void
lockForZoneLimit(int $groupId)
Lock the group's row until the open transaction ends, so zone limit checks for this group run one at a time