Unofficial SMF API Documentation

./Sources/ReportedContent.php

ReportedContent

function ReportedContent(): void

Sets and call a function based on the given subaction. Acts as a dispatcher function.

It requires the moderate_forum permission.

Uses ModerationCenter template. Uses ModerationCenter language file.

ShowReports

function ShowReports(): void

Shows all currently open reported posts.

Handles closing multiple reports

ShowClosedReports

function ShowClosedReports(): void

Shows all currently closed reported posts.

ReportDetails

function ReportDetails(): void

Shows detailed information about a report. such as report comments and moderator comments.

Shows a list of moderation actions for the specific report.

HandleComment

function HandleComment(): void

Creates/Deletes moderator comments.

EditComment

function EditComment(): void

Shows a textarea for editing a moderator comment.

Handles the edited comment and stores it on the DB.

HandleReport

function HandleReport(): void

Performs closing/ignoring actions for a given report.

Suggest an edit to this page on GitHub