Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -42,6 +42,9 @@ |
43 | 43 | return Html::element( 'img', array( 'src' => $icon, 'alt' => $mode_text ) ); |
44 | 44 | } |
45 | 45 | |
| 46 | + /** |
| 47 | + * @param Title $title |
| 48 | + */ |
46 | 49 | public static function getAnonFromTitle( Title $title ) { |
47 | 50 | return self::getAnonFromString( $title->getBaseText() ); |
48 | 51 | } |
— | — | @@ -49,7 +52,7 @@ |
50 | 53 | /** |
51 | 54 | * Returns the status and User element |
52 | 55 | * |
53 | | - * @param Title $title a title of page |
| 56 | + * @param string $username a user |
54 | 57 | * @return array|bool Array containing the status and User object |
55 | 58 | */ |
56 | 59 | public static function getAnonFromString( $username ) { |
— | — | @@ -77,6 +80,10 @@ |
78 | 81 | return array( $status, $user ); |
79 | 82 | } |
80 | 83 | |
| 84 | + /** |
| 85 | + * @param $title Title |
| 86 | + * @return array |
| 87 | + */ |
81 | 88 | public static function getUserInfoFromTitle( Title $title ) { |
82 | 89 | return self::getUserInfoFromString( $title->getBaseText() ); |
83 | 90 | } |
— | — | @@ -84,7 +91,7 @@ |
85 | 92 | /** |
86 | 93 | * Returns the status and User element |
87 | 94 | * |
88 | | - * @param Title $title a title of page |
| 95 | + * @param string $username name of user |
89 | 96 | * @return array|bool Array containing the status and User object |
90 | 97 | */ |
91 | 98 | public static function getUserInfoFromString( $username ) { |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.api.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | |
48 | 48 | public function getParamDescription() { |
49 | 49 | return array( |
50 | | - 'user' => 'Username of user of which you want to get status', |
| 50 | + 'user' => 'Username of user you want to get status for', |
51 | 51 | ); |
52 | 52 | } |
53 | 53 | |
— | — | @@ -67,6 +67,6 @@ |
68 | 68 | } |
69 | 69 | |
70 | 70 | public function getVersion() { |
71 | | - return __CLASS__ . ': $Id: OnlineStatusBar.api.php 90814 2011-12-01 15:00:00Z petrb $'; |
| 71 | + return __CLASS__ . ': $Id: OnlineStatusBar.api.php petrb $'; |
72 | 72 | } |
73 | 73 | } |