1 | <?php |
||
14 | final class SWLGroups { |
||
15 | |||
16 | /** |
||
17 | * Cached list of all watchlist groups. |
||
18 | * |
||
19 | * @var array of SWLGroup |
||
20 | */ |
||
21 | private static $groups = false; |
||
22 | |||
23 | /** |
||
24 | * Returns all watchlist groups. |
||
25 | * |
||
26 | * @since 0.1 |
||
27 | * |
||
28 | * @return array of SWLGroup |
||
29 | */ |
||
30 | public static function getAll() { |
||
53 | |||
54 | /** |
||
55 | * Returns all watchlist groups that watch the specified page. |
||
56 | * |
||
57 | * @since 0.1 |
||
58 | * |
||
59 | * @param Title $title |
||
60 | * |
||
61 | * @return array of SWLGroup |
||
62 | */ |
||
63 | public static function getMatchingWatchGroups( Title $title ) { |
||
74 | |||
75 | /** |
||
76 | * Returns all watchlist groups that are watched by the specified user. |
||
77 | * |
||
78 | * @since 0.1 |
||
79 | * |
||
80 | * @param User $user |
||
81 | * |
||
82 | * @return array of SWLGroup |
||
83 | */ |
||
84 | public static function getGroupsForUser( User $user ) { |
||
95 | |||
96 | } |
||
97 |