X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiRevisionDelete.php;h=783a39b217e94c5b60a6ac9fee1f8b1850fa0c7c;hb=5d318d830323cc69b046b75fafaaa19b78034e9d;hp=cbc3070422e2631aa6c0e54ba8515b35580a4b6b;hpb=abb5869cba1cca1c7d9bedfda6d3831bf2fc11a0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiRevisionDelete.php b/includes/api/ApiRevisionDelete.php index cbc3070422..783a39b217 100644 --- a/includes/api/ApiRevisionDelete.php +++ b/includes/api/ApiRevisionDelete.php @@ -199,34 +199,18 @@ class ApiRevisionDelete extends ApiBase { ); } - public function getParamDescription() { - return array( - 'type' => 'Type of revision deletion being performed', - 'target' => 'Page title for the revision deletion, if required for the type', - 'ids' => 'Identifiers for the revisions to be deleted', - 'hide' => 'What to hide for each revision', - 'show' => 'What to unhide for each revision', - 'suppress' => 'Whether to suppress data from administrators as well as others', - 'reason' => 'Reason for the deletion/undeletion', - ); - } - - public function getDescription() { - return 'Delete/undelete revisions.'; - } - public function needsToken() { return 'csrf'; } - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=revisiondelete&target=Main%20Page&type=revision&ids=12345&' . + 'action=revisiondelete&target=Main%20Page&type=revision&ids=12345&' . 'hide=content&token=123ABC' - => 'Hide content for revision 12345 on the Main Page', - 'api.php?action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&' . + => 'apihelp-revisiondelete-example-revision', + 'action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&' . 'reason=BLP%20violation&token=123ABC' - => 'Hide all data on log entry 67890 with the reason "BLP violation"', + => 'apihelp-revisiondelete-example-log', ); }