r87334 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87333‎ | r87334 | r87335 >
Date:16:54, 3 May 2011
Author:maxsem
Status:ok
Tags:
Comment:
Added a function that returns the list of supported formats to ApiMain
Modified paths:
  • /trunk/phase3/includes/api/ApiMain.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMain.php
@@ -989,6 +989,16 @@
990990 function getModules() {
991991 return $this->mModules;
992992 }
 993+
 994+ /**
 995+ * Returns the list of supported formats in form ( 'format' => 'ClassName' )
 996+ *
 997+ * @since 1.18
 998+ * @return array
 999+ */
 1000+ public function getFormats() {
 1001+ return $this->mFormats;
 1002+ }
9931003 }
9941004
9951005 /**

Status & tagging log