Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -140,6 +140,7 @@ |
141 | 141 | /** |
142 | 142 | * Should this be using a simple icon-based UI? |
143 | 143 | * Check the user's preferences first, using the site settings as the default. |
| 144 | + * @TODO: dependency inject the User? |
144 | 145 | * @returns bool |
145 | 146 | */ |
146 | 147 | public static function useSimpleUI() { |
— | — | @@ -212,6 +213,7 @@ |
213 | 214 | |
214 | 215 | /** |
215 | 216 | * Should this user ignore the site and page default version settings? |
| 217 | + * @TODO: dependency inject the User? |
216 | 218 | * @returns bool |
217 | 219 | */ |
218 | 220 | public static function ignoreDefaultVersion() { |
— | — | @@ -411,6 +413,7 @@ |
412 | 414 | * @param string $tag |
413 | 415 | * @param int $value |
414 | 416 | * @returns bool |
| 417 | + * @TODO: dependency inject the User? |
415 | 418 | */ |
416 | 419 | public static function userCanSetTag( $tag, $value ) { |
417 | 420 | global $wgUser; |
— | — | @@ -446,6 +449,7 @@ |
447 | 450 | * @param array $flags, suggested flags |
448 | 451 | * @param array $oldflags, pre-existing flags |
449 | 452 | * @returns bool |
| 453 | + * @TODO: dependency inject the User? |
450 | 454 | */ |
451 | 455 | public static function userCanSetFlags( $flags, $oldflags = array() ) { |
452 | 456 | global $wgUser; |
— | — | @@ -472,6 +476,7 @@ |
473 | 477 | * Check if a user can set the autoreview restiction level to $right |
474 | 478 | * @param string $right the level |
475 | 479 | * @returns bool |
| 480 | + * @TODO: dependency inject the User? |
476 | 481 | */ |
477 | 482 | public static function userCanSetAutoreviewLevel( $right ) { |
478 | 483 | global $wgUser; |