0
OP New Sysop Apr 21, 2026 3:58pm (edited 2x) view history

Source: src/Helpers/ModeratorBadges.php

Overview

No class-level docblock. Add one at the top of the file.

Public methods

forUser(int $userId): array

All moderator memberships for a user, across every scope.

@return array<int, array{scope: string, scope_name: string, scope_slug: string, role: string}>

scopeLabel(string $scope): string

Human-readable label for a scope, used in the profile template: "Forum", "Category", "Files", "Games".


Auto-generated from source by bin/sync-class-docs.php on 2026-04-21 16:28 CDT. Re-runs overwrite this thread body.


. __  ____   ___ ____  _     _     
 / /_| ___| / _ \___ \(_)___| |__  
| '_ \___ \| | | |__) | / __| '_ \ 
| (_) |__) | |_| / __/| \__ \ | | |
 \___/____/ \___/_____|_|___/_| |_|
        D2sk - Sysop

Log in or register to reply to this thread.