MediaWiki
1.30.0
|
Hooks for the spam blacklist extension. More...
Static Public Member Functions | |
static | abortNewAccount ( $user, &$abortError) |
Processes new accounts for valid email addresses. More... | |
static | filterMergedContent (IContextSource $context, Content $content, Status $status, $summary, User $user, $minoredit) |
Hook function for EditFilterMergedContent. More... | |
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 (Page $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. More... | |
static | registerExtension () |
static | userCanSendEmail (&$user, &$hookErr) |
Verify that the user can send emails. More... | |
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. More... | |
Hooks for the spam blacklist extension.
Definition at line 8 of file SpamBlacklistHooks.php.
|
static |
Processes new accounts for valid email addresses.
$user | User |
$abortError |
Definition at line 109 of file SpamBlacklistHooks.php.
References $user, BaseBlacklist\getInstance(), and wfMessage().
|
static |
Hook function for EditFilterMergedContent.
IContextSource | $context | |
Content | $content | |
Status | $status | |
string | $summary | |
User | $user | |
bool | $minoredit |
Definition at line 33 of file SpamBlacklistHooks.php.
References $context, $matches, $title, as, BaseBlacklist\getInstance(), and MediaWiki\getTitle().
|
static |
Definition at line 284 of file SpamBlacklistHooks.php.
References $article, and BaseBlacklist\getInstance().
|
static |
Definition at line 305 of file SpamBlacklistHooks.php.
References $user, BaseBlacklist\getInstance(), and MediaWiki\getTitle().
|
static |
Definition at line 73 of file SpamBlacklistHooks.php.
References $output, BaseBlacklist\getInstance(), and WikiPage\getTitle().
|
static |
UploadBase | $upload | |
User | $user | |
array | $props | |
string | $comment | |
string | $pageText | |
array | ApiMessage | &$error |
Definition at line 233 of file SpamBlacklistHooks.php.
References $matches, $output, $title, BaseBlacklist\getInstance(), ContentHandler\makeContent(), and wfMessage().
|
static |
Hook function for PageContentSaveComplete Clear local spam blacklist caches on page save.
Page | $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 193 of file SpamBlacklistHooks.php.
References $type, $user, as, BaseBlacklist\getBlacklistTypes(), BaseBlacklist\getInstance(), and BaseBlacklist\isLocalSource().
|
static |
Definition at line 10 of file SpamBlacklistHooks.php.
References $wgAuthManagerAutoConfig, class, global, and Hooks\register().
|
static |
Verify that the user can send emails.
$user | User |
$hookErr | array |
Definition at line 90 of file SpamBlacklistHooks.php.
References $user, and BaseBlacklist\getInstance().
|
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 131 of file SpamBlacklistHooks.php.
References $lines, $title, $type, SpamRegexBatch\getBadLines(), BaseBlacklist\getInstance(), EditPage\getTitle(), BaseBlacklist\getTypeFromTitle(), BaseBlacklist\isLocalSource(), wfDebugLog(), and wfMessage().