http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97745
Revision: 97745
Author: reedy
Date: 2011-09-21 16:36:43 +0000 (Wed, 21 Sep 2011)
Log Message:
-----------
Return documentation
Modified Paths:
--------------
trunk/phase3/includes/api/ApiBase.php
trunk/phase3/includes/api/ApiFeedContributions.php
trunk/phase3/includes/api/ApiFeedWatchlist.php
trunk/phase3/includes/api/ApiFormatBase.php
trunk/phase3/includes/api/ApiQueryUserContributions.php
trunk/phase3/includes/api/ApiUpload.php
Modified: trunk/phase3/includes/api/ApiBase.php
===================================================================
--- trunk/phase3/includes/api/ApiBase.php 2011-09-21 16:34:23 UTC (rev
97744)
+++ trunk/phase3/includes/api/ApiBase.php 2011-09-21 16:36:43 UTC (rev
97745)
@@ -655,6 +655,8 @@
/**
* @deprecated since 1.17 use MWNamespace::getValidNamespaces()
+ *
+ * @return array
*/
public static function getValidNamespaces() {
return MWNamespace::getValidNamespaces();
@@ -1164,7 +1166,7 @@
'emptynewsection' => array( 'code' => 'emptynewsection', 'info'
=> 'Creating empty new sections is not possible.' ),
'revwrongpage' => array( 'code' => 'revwrongpage', 'info' =>
"r\$1 is not a revision of ``\$2''" ),
'undo-failure' => array( 'code' => 'undofailure', 'info' =>
'Undo failed due to conflicting intermediate edits' ),
-
+
// Messages from WikiPage::doEit()
'edit-hook-aborted' => array( 'code' => 'edit-hook-aborted',
'info' => "Your edit was aborted by an ArticleSave hook" ),
'edit-gone-missing' => array( 'code' => 'edit-gone-missing',
'info' => "The page you tried to edit doesn't seem to exist anymore" ),
Modified: trunk/phase3/includes/api/ApiFeedContributions.php
===================================================================
--- trunk/phase3/includes/api/ApiFeedContributions.php 2011-09-21 16:34:23 UTC
(rev 97744)
+++ trunk/phase3/includes/api/ApiFeedContributions.php 2011-09-21 16:36:43 UTC
(rev 97745)
@@ -36,6 +36,8 @@
/**
* This module uses a custom feed wrapper printer.
+ *
+ * @return ApiFormatFeedWrapper
*/
public function getCustomPrinter() {
return new ApiFormatFeedWrapper( $this->getMain() );
Modified: trunk/phase3/includes/api/ApiFeedWatchlist.php
===================================================================
--- trunk/phase3/includes/api/ApiFeedWatchlist.php 2011-09-21 16:34:23 UTC
(rev 97744)
+++ trunk/phase3/includes/api/ApiFeedWatchlist.php 2011-09-21 16:36:43 UTC
(rev 97745)
@@ -44,6 +44,8 @@
/**
* This module uses a custom feed wrapper printer.
+ *
+ * @return ApiFormatFeedWrapper
*/
public function getCustomPrinter() {
return new ApiFormatFeedWrapper( $this->getMain() );
Modified: trunk/phase3/includes/api/ApiFormatBase.php
===================================================================
--- trunk/phase3/includes/api/ApiFormatBase.php 2011-09-21 16:34:23 UTC (rev
97744)
+++ trunk/phase3/includes/api/ApiFormatBase.php 2011-09-21 16:36:43 UTC (rev
97745)
@@ -342,6 +342,8 @@
/**
* Optimization - no need to sanitize data that will not be needed
+ *
+ * @return bool
*/
public function getNeedsRawData() {
return true;
Modified: trunk/phase3/includes/api/ApiQueryUserContributions.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryUserContributions.php 2011-09-21
16:34:23 UTC (rev 97744)
+++ trunk/phase3/includes/api/ApiQueryUserContributions.php 2011-09-21
16:36:43 UTC (rev 97745)
@@ -275,6 +275,8 @@
/**
* Extract fields from the database row and append them to a result
array
+ *
+ * @return array
*/
private function extractRowInfo( $row ) {
$vals = array();
Modified: trunk/phase3/includes/api/ApiUpload.php
===================================================================
--- trunk/phase3/includes/api/ApiUpload.php 2011-09-21 16:34:23 UTC (rev
97744)
+++ trunk/phase3/includes/api/ApiUpload.php 2011-09-21 16:36:43 UTC (rev
97745)
@@ -428,6 +428,8 @@
/**
* Perform the actual upload. Returns a suitable result array on
success;
* dies on failure.
+ *
+ * @return array
*/
protected function performUpload() {
global $wgUser;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs