class ModerationPersists reports and user moderation state.
class final
- Full name
Kernowdev\ClanbiteForums\Forums\Moderation
Constants
| Name | Value | Description |
|---|---|---|
USER_META_WARNING | 'clanbite_forums_warning_level' | |
USER_META_BANNED | 'clanbite_forums_banned' | |
STATUS_PENDING | 'pending' | |
STATUS_IGNORED | 'ignored' | |
STATUS_RESOLVED | 'resolved' |
Methods
actor_can_sanction_user()Site managers can sanction anyone (except themselves). Forum moderators cannot sanction site forum managers.bump_warning_level()finalize_report()forum_ids_user_moderates()Forum IDs a user may moderate (not including site-wide managers).get_report()get_warning_level()insert_report()list_reports_for_viewer()Paginated reports visible to the viewer.resolve_pending_reports_for_target()Mark all pending reports for the same post as resolved (after delete).resolve_report_target()Resolve forum/topic context for a report target.set_user_banned()user_is_forums_banned()Whether the user is banned from posting in forums.viewer_can_handle_report()Whether the viewer may act on this report row.
Defined in inc/Forums/Moderation.php