From: Max Semenik Date: Tue, 3 May 2011 16:54:16 +0000 (+0000) Subject: Added a function that returns the list of supported formats to ApiMain X-Git-Tag: 1.31.0-rc.0~30437 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=40107fa4646e6ac09653f4cff4cbc5ef03fa7947;p=lhc%2Fweb%2Fwiklou.git Added a function that returns the list of supported formats to ApiMain --- 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; + } } /**