summaryrefslogtreecommitdiff
path: root/extensions/SpamBlacklist/api/ApiSpamBlacklist.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:30:02 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:30:02 -0400
commit1de335ad3f395ca6861085393ba366a9e3fb4a0d (patch)
treef1fdd326034e05177596851be6a7127615d81498 /extensions/SpamBlacklist/api/ApiSpamBlacklist.php
parent9c75fa8ff6d4d38ef552c00fef5969fb154765e8 (diff)
parentf6d65e533c62f6deb21342d4901ece24497b433e (diff)
Merge commit 'f6d65'
# Conflicts: # skins/ArchLinux/ArchLinux.php
Diffstat (limited to 'extensions/SpamBlacklist/api/ApiSpamBlacklist.php')
-rw-r--r--extensions/SpamBlacklist/api/ApiSpamBlacklist.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/extensions/SpamBlacklist/api/ApiSpamBlacklist.php b/extensions/SpamBlacklist/api/ApiSpamBlacklist.php
index dad9e8e0..9c5ce3db 100644
--- a/extensions/SpamBlacklist/api/ApiSpamBlacklist.php
+++ b/extensions/SpamBlacklist/api/ApiSpamBlacklist.php
@@ -55,16 +55,25 @@ class ApiSpamBlacklist extends ApiBase {
);
}
+ /**
+ * @deprecated since MediaWiki core 1.25
+ */
public function getParamDescription() {
return array(
'url' => 'A pipe-separated list of URLs to validate against the blacklist',
);
}
+ /**
+ * @deprecated since MediaWiki core 1.25
+ */
public function getDescription() {
return 'Validate one or more URLs against the SpamBlacklist.';
}
+ /**
+ * @deprecated since MediaWiki core 1.25
+ */
public function getExamples() {
return array(
'api.php?action=spamblacklist&url=http%3A%2F%2Fwww.example.com%2F%7Chttp%3A%2F%2Fwww.example.org%2F',
@@ -72,6 +81,16 @@ class ApiSpamBlacklist extends ApiBase {
);
}
+ /**
+ * @see ApiBase::getExamplesMessages()
+ */
+ protected function getExamplesMessages() {
+ return array(
+ 'action=spamblacklist&url=http://www.example.com/|http://www.example.org/'
+ => 'apihelp-spamblacklist-example-1',
+ );
+ }
+
public function getHelpUrls() {
return array( 'https://www.mediawiki.org/wiki/Extension:SpamBlacklist/API' );
}