MediaWiki REL1_33
|
Hooks for the spam blacklist extension. More...
Static Public Member Functions | |
static | filterMergedContent (IContextSource $context, Content $content, Status $status, $summary, User $user, $minoredit) |
Hook function for EditFilterMergedContent. | |
static | onArticleDelete (WikiPage &$article, User &$user, &$reason, &$error) |
static | onArticleDeleteComplete (&$page, User &$user, $reason, $id, Content $content=null, LogEntry $logEntry) |
static | onParserOutputStashForEdit (WikiPage $page, Content $content, ParserOutput $output) |
static | onUploadVerifyUpload (UploadBase $upload, User $user, array $props, $comment, $pageText, &$error) |
static | pageSaveContent (WikiPage $wikiPage, User $user, Content $content, $summary, $isMinor, $isWatch, $section, $flags, $revision, Status $status, $baseRevId) |
Hook function for PageContentSaveComplete Clear local spam blacklist caches on page save. | |
static | userCanSendEmail (&$user, &$hookErr) |
Verify that the user can send emails. | |
static | validate (EditPage $editPage, $text, $section, &$hookError) |
Hook function for EditFilter Confirm that a local blacklist page being saved is valid, and toss back a warning to the user if it isn't. | |
Hooks for the spam blacklist extension.
Definition at line 6 of file SpamBlacklistHooks.php.
|
static |
Hook function for EditFilterMergedContent.
IContextSource | $context | |
Content | $content | |
Status | $status | |
string | $summary | |
User | $user | |
bool | $minoredit |
Definition at line 20 of file SpamBlacklistHooks.php.
References $content, $context, $matches, and(), and BaseBlacklist\getSpamBlacklist().
|
static |
Definition at line 252 of file SpamBlacklistHooks.php.
References $article, and BaseBlacklist\getSpamBlacklist().
|
static |
WikiPage | &$page | |
User | &$user | |
string | $reason | |
int | $id | |
Content | null | $content | |
LogEntry | $logEntry | @suppress PhanParamReqAfterOpt |
Definition at line 273 of file SpamBlacklistHooks.php.
References BaseBlacklist\getSpamBlacklist().
|
static |
Definition at line 60 of file SpamBlacklistHooks.php.
References $output, and(), and BaseBlacklist\getSpamBlacklist().
|
static |
UploadBase | $upload | |
User | $user | |
array | $props | |
string | $comment | |
string | $pageText | |
array | ApiMessage | &$error |
Definition at line 201 of file SpamBlacklistHooks.php.
References $content, $matches, $output, and(), BaseBlacklist\getSpamBlacklist(), UploadBase\getTitle(), and wfMessage().
|
static |
Hook function for PageContentSaveComplete Clear local spam blacklist caches on page save.
WikiPage | $wikiPage | |
User | $user | |
Content | $content | |
string | $summary | |
bool | $isMinor | |
bool | $isWatch | |
string | $section | |
int | $flags | |
Revision | null | $revision | |
Status | $status | |
int | $baseRevId |
Definition at line 161 of file SpamBlacklistHooks.php.
References $type, BaseBlacklist\getBlacklistTypes(), BaseBlacklist\getInstance(), BaseBlacklist\getSpamBlacklist(), WikiPage\getTitle(), and BaseBlacklist\isLocalSource().
|
static |
Verify that the user can send emails.
User | &$user | |
array | &$hookErr |
Definition at line 77 of file SpamBlacklistHooks.php.
References BaseBlacklist\getEmailBlacklist(), and null.
|
static |
Hook function for EditFilter Confirm that a local blacklist page being saved is valid, and toss back a warning to the user if it isn't.
EditPage | $editPage | |
string | $text | |
string | $section | |
string | &$hookError |
Definition at line 99 of file SpamBlacklistHooks.php.
References $lines, $type, and(), SpamRegexBatch\getBadLines(), BaseBlacklist\getInstance(), BaseBlacklist\getTypeFromTitle(), BaseBlacklist\isLocalSource(), wfDebugLog(), and wfMessage().