summaryrefslogtreecommitdiff
path: root/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php')
-rw-r--r--extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php21
1 files changed, 19 insertions, 2 deletions
diff --git a/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php b/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php
index 1da70d2a..6fa9db59 100644
--- a/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php
+++ b/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php
@@ -90,6 +90,9 @@ class ApiQueryTitleBlacklist extends ApiBase {
);
}
+ /**
+ * @deprecated since MediaWiki core 1.25
+ */
public function getParamDescription() {
return array(
'title' => 'The string to validate against the blacklist',
@@ -98,10 +101,16 @@ class ApiQueryTitleBlacklist extends ApiBase {
);
}
+ /**
+ * @deprecated since MediaWiki core 1.25
+ */
public function getDescription() {
return 'Validate an article title, filename, or username against the TitleBlacklist.';
}
+ /**
+ * @deprecated since MediaWiki core 1.25
+ */
public function getExamples() {
return array(
'api.php?action=titleblacklist&tbtitle=Foo',
@@ -109,7 +118,15 @@ class ApiQueryTitleBlacklist extends ApiBase {
);
}
- public function getVersion() {
- return __CLASS__ . ': $Id$';
+ /**
+ * @see ApiBase::getExamplesMessages()
+ */
+ protected function getExamplesMessages() {
+ return array(
+ 'action=titleblacklist&tbtitle=Foo'
+ => 'apihelp-titleblacklist-example-1',
+ 'action=titleblacklist&tbtitle=Bar&tbaction=edit'
+ => 'apihelp-titleblacklist-example-2',
+ );
}
}