|
MediaWiki master
|
Service to check if text (either content or a summary) qualifies as spam. More...
Public Member Functions | |
| __construct (private readonly array $spamRegex, private readonly array $summaryRegex) | |
| checkContent (string $text) | |
| Check whether content text is considered spam. | |
| checkSummary (string $summary) | |
| Check whether summary text is considered spam. | |
Service to check if text (either content or a summary) qualifies as spam.
Text qualifies as spam if it matches the global $wgSpamRegex Summaries qualify as spam if they match the global $wgSummarySpamRegex
Definition at line 14 of file SpamChecker.php.
| MediaWiki\EditPage\SpamChecker::__construct | ( | private readonly array | $spamRegex, |
| private readonly array | $summaryRegex ) |
| string[] | $spamRegex | |
| string[] | $summaryRegex |
Definition at line 20 of file SpamChecker.php.
| MediaWiki\EditPage\SpamChecker::checkContent | ( | string | $text | ) |
Check whether content text is considered spam.
Definition at line 31 of file SpamChecker.php.
| MediaWiki\EditPage\SpamChecker::checkSummary | ( | string | $summary | ) |
Check whether summary text is considered spam.
Definition at line 40 of file SpamChecker.php.