r101265 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101264‎ | r101265 | r101266 >
Date:14:52, 29 October 2011
Author:petrb
Status:deferred
Tags:
Comment:
Added more comments to code
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php (modified) (history)
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php
@@ -128,6 +128,7 @@
129129 }
130130
131131 /**
 132+ * Insert to the database
132133 * @return bool
133134 */
134135 public static function UpdateDb() {
@@ -199,6 +200,7 @@
200201 }
201202
202203 /**
 204+ * Delete user who logged out
203205 * @param $userName string
204206 * @return bool
205207 */
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php
@@ -33,6 +33,7 @@
3434 }
3535
3636 /**
 37+ * Called everytime when it's needed to update db
3738 * @return bool
3839 */
3940 public static function updateStatus() {
@@ -41,6 +42,7 @@
4243 }
4344
4445 /**
 46+ * Creates a bar
4547 * @param $article Article
4648 * @param $outputDone bool
4749 * @param $pcache string
@@ -77,6 +79,7 @@
7880 }
7981
8082 /**
 83+ * Insert user options
8184 * @param $user User
8285 * @param $preferences array
8386 * @return bool
@@ -112,7 +115,7 @@
113116
114117 /**
115118 * @param $magicWords array
116 - * @param $ln string?
 119+ * @param $ln string (language)
117120 * @return bool
118121 */
119122 public static function magicWordVar( array &$magicWords, $ln ) {

Status & tagging log