From 40107fa4646e6ac09653f4cff4cbc5ef03fa7947 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Tue, 3 May 2011 16:54:16 +0000 Subject: [PATCH] Added a function that returns the list of supported formats to ApiMain --- includes/api/ApiMain.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 032bad70ee..31b3e7bb3b 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -989,6 +989,16 @@ class ApiMain extends ApiBase { function getModules() { return $this->mModules; } + + /** + * Returns the list of supported formats in form ( 'format' => 'ClassName' ) + * + * @since 1.18 + * @return array + */ + public function getFormats() { + return $this->mFormats; + } } /** -- 2.20.1