http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90772
Revision: 90772
Author: reedy
Date: 2011-06-25 16:15:44 +0000 (Sat, 25 Jun 2011)
Log Message:
-----------
Uncommited documentation from my working copy
Modified Paths:
--------------
trunk/phase3/includes/Export.php
trunk/phase3/includes/filerepo/File.php
Modified: trunk/phase3/includes/Export.php
===================================================================
--- trunk/phase3/includes/Export.php 2011-06-25 15:42:42 UTC (rev 90771)
+++ trunk/phase3/includes/Export.php 2011-06-25 16:15:44 UTC (rev 90772)
@@ -438,12 +438,13 @@
/**
* Closes the output stream with the closing root element.
* Call when finished dumping things.
+ *
+ * @return string
*/
function closeStream() {
return "</mediawiki>\n";
}
-
/**
* Opens a <page> section on the output stream, with data
* from the given database row.
@@ -616,6 +617,11 @@
return '';
}
+ /**
+ * @param $file File
+ * @param $dumpContents bool
+ * @return string
+ */
function writeUpload( $file, $dumpContents = false ) {
if ( $file->isOld() ) {
$archiveName = " " .
Modified: trunk/phase3/includes/filerepo/File.php
===================================================================
--- trunk/phase3/includes/filerepo/File.php 2011-06-25 15:42:42 UTC (rev
90771)
+++ trunk/phase3/includes/filerepo/File.php 2011-06-25 16:15:44 UTC (rev
90772)
@@ -1431,8 +1431,10 @@
* 160 log 2 / log 36 = 30.95, so the 160-bit hash fills 31 digits in
base 36
* fairly neatly.
*
- * Returns false on failure
+ * @param $path string
*
+ * @return false on failure
+ *
* @param $path string
*
* @return false|string
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs