Index: trunk/phase3/skins/Simple.php |
— | — | @@ -21,6 +21,9 @@ |
22 | 22 | var $skinname = 'simple', $stylename = 'simple', |
23 | 23 | $template = 'MonoBookTemplate', $useHeadElement = true; |
24 | 24 | |
| 25 | + /** |
| 26 | + * @param $out OutputPage |
| 27 | + */ |
25 | 28 | function setupSkinUserCss( OutputPage $out ) { |
26 | 29 | parent::setupSkinUserCss( $out ); |
27 | 30 | |
Index: trunk/phase3/skins/CologneBlue.php |
— | — | @@ -19,6 +19,9 @@ |
20 | 20 | var $skinname = 'cologneblue', $stylename = 'cologneblue', |
21 | 21 | $template = 'CologneBlueTemplate'; |
22 | 22 | |
| 23 | + /** |
| 24 | + * @param $out OutputPage |
| 25 | + */ |
23 | 26 | function setupSkinUserCss( OutputPage $out ){ |
24 | 27 | parent::setupSkinUserCss( $out ); |
25 | 28 | $out->addModuleStyles( 'skins.cologneblue' ); |
— | — | @@ -51,6 +54,9 @@ |
52 | 55 | |
53 | 56 | class CologneBlueTemplate extends LegacyTemplate { |
54 | 57 | |
| 58 | + /** |
| 59 | + * @return string |
| 60 | + */ |
55 | 61 | function doBeforeContent() { |
56 | 62 | $mainPageObj = Title::newMainPage(); |
57 | 63 | |
— | — | @@ -91,6 +97,9 @@ |
92 | 98 | return $s; |
93 | 99 | } |
94 | 100 | |
| 101 | + /** |
| 102 | + * @return string |
| 103 | + */ |
95 | 104 | function doAfterContent(){ |
96 | 105 | global $wgLang; |
97 | 106 | |
— | — | @@ -132,6 +141,9 @@ |
133 | 142 | return $s; |
134 | 143 | } |
135 | 144 | |
| 145 | + /** |
| 146 | + * @return string |
| 147 | + */ |
136 | 148 | function sysLinks() { |
137 | 149 | global $wgUser, $wgLang; |
138 | 150 | $li = SpecialPage::getTitleFor( 'Userlogin' ); |
— | — | @@ -190,6 +202,8 @@ |
191 | 203 | /** |
192 | 204 | * Compute the sidebar |
193 | 205 | * @access private |
| 206 | + * |
| 207 | + * @return string |
194 | 208 | */ |
195 | 209 | function quickBar(){ |
196 | 210 | global $wgOut, $wgUser; |
— | — | @@ -345,11 +359,19 @@ |
346 | 360 | return $s; |
347 | 361 | } |
348 | 362 | |
| 363 | + /** |
| 364 | + * @param $key string |
| 365 | + * @return string |
| 366 | + */ |
349 | 367 | function menuHead( $key ) { |
350 | 368 | $s = "\n<h6>" . wfMsg( $key ) . "</h6>"; |
351 | 369 | return $s; |
352 | 370 | } |
353 | 371 | |
| 372 | + /** |
| 373 | + * @param $label string |
| 374 | + * @return string |
| 375 | + */ |
354 | 376 | function searchForm( $label = '' ) { |
355 | 377 | global $wgRequest, $wgUseTwoButtonsSearchForm; |
356 | 378 | |
Index: trunk/phase3/skins/Standard.php |
— | — | @@ -18,6 +18,9 @@ |
19 | 19 | var $skinname = 'standard', $stylename = 'standard', |
20 | 20 | $template = 'StandardTemplate'; |
21 | 21 | |
| 22 | + /** |
| 23 | + * @param $out OutputPage |
| 24 | + */ |
22 | 25 | function setupSkinUserCss( OutputPage $out ){ |
23 | 26 | parent::setupSkinUserCss( $out ); |
24 | 27 | $out->addModuleStyles( 'skins.standard' ); |
— | — | @@ -47,6 +50,9 @@ |
48 | 51 | |
49 | 52 | class StandardTemplate extends LegacyTemplate { |
50 | 53 | |
| 54 | + /** |
| 55 | + * @return string |
| 56 | + */ |
51 | 57 | function doAfterContent() { |
52 | 58 | global $wgContLang, $wgLang; |
53 | 59 | wfProfileIn( __METHOD__ ); |
— | — | @@ -95,6 +101,9 @@ |
96 | 102 | return $s; |
97 | 103 | } |
98 | 104 | |
| 105 | + /** |
| 106 | + * @return string |
| 107 | + */ |
99 | 108 | function quickBar() { |
100 | 109 | global $wgOut, $wgUser, $wgRequest, $wgContLang; |
101 | 110 | |
Index: trunk/phase3/skins/Vector.php |
— | — | @@ -332,6 +332,8 @@ |
333 | 333 | /** |
334 | 334 | * Render one or more navigations elements by name, automatically reveresed |
335 | 335 | * when UI is in RTL mode |
| 336 | + * |
| 337 | + * @param $elements array |
336 | 338 | */ |
337 | 339 | private function renderNavigation( $elements ) { |
338 | 340 | global $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgUser, $wgLang; |
Index: trunk/phase3/skins/Nostalgia.php |
— | — | @@ -18,6 +18,9 @@ |
19 | 19 | var $skinname = 'nostalgia', $stylename = 'nostalgia', |
20 | 20 | $template = 'NostalgiaTemplate'; |
21 | 21 | |
| 22 | + /** |
| 23 | + * @param $out OutputPage |
| 24 | + */ |
22 | 25 | function setupSkinUserCss( OutputPage $out ){ |
23 | 26 | parent::setupSkinUserCss( $out ); |
24 | 27 | $out->addModuleStyles( 'skins.nostalgia' ); |
— | — | @@ -27,6 +30,9 @@ |
28 | 31 | |
29 | 32 | class NostalgiaTemplate extends LegacyTemplate { |
30 | 33 | |
| 34 | + /** |
| 35 | + * @return string |
| 36 | + */ |
31 | 37 | function doBeforeContent() { |
32 | 38 | $s = "\n<div id='content'>\n<div id='top'>\n"; |
33 | 39 | $s .= '<div id="logo">' . $this->getSkin()->logoText( 'right' ) . '</div>'; |
— | — | @@ -59,6 +65,9 @@ |
60 | 66 | return $s; |
61 | 67 | } |
62 | 68 | |
| 69 | + /** |
| 70 | + * @return string |
| 71 | + */ |
63 | 72 | function topLinks() { |
64 | 73 | global $wgOut, $wgUser; |
65 | 74 | $sep = " |\n"; |
— | — | @@ -105,6 +114,9 @@ |
106 | 115 | return $s; |
107 | 116 | } |
108 | 117 | |
| 118 | + /** |
| 119 | + * @return string |
| 120 | + */ |
109 | 121 | function doAfterContent() { |
110 | 122 | $s = "\n</div><br clear='all' />\n"; |
111 | 123 | |
Index: trunk/phase3/skins/Chick.php |
— | — | @@ -21,6 +21,9 @@ |
22 | 22 | var $skinname = 'chick', $stylename = 'chick', |
23 | 23 | $template = 'MonoBookTemplate', $useHeadElement = true; |
24 | 24 | |
| 25 | + /** |
| 26 | + * @param $out OutputPage |
| 27 | + */ |
25 | 28 | function setupSkinUserCss( OutputPage $out ){ |
26 | 29 | parent::setupSkinUserCss( $out ); |
27 | 30 | |
Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -23,6 +23,9 @@ |
24 | 24 | var $skinname = 'monobook', $stylename = 'monobook', |
25 | 25 | $template = 'MonoBookTemplate', $useHeadElement = true; |
26 | 26 | |
| 27 | + /** |
| 28 | + * @param $out OutputPage |
| 29 | + */ |
27 | 30 | function setupSkinUserCss( OutputPage $out ) { |
28 | 31 | global $wgHandheldStyle; |
29 | 32 | parent::setupSkinUserCss( $out ); |
— | — | @@ -216,6 +219,8 @@ |
217 | 220 | /** |
218 | 221 | * Prints the cactions bar. |
219 | 222 | * Shared between MonoBook and Modern |
| 223 | + * |
| 224 | + * @param $skin Skin |
220 | 225 | */ |
221 | 226 | function cactions() { |
222 | 227 | ?> |
Index: trunk/phase3/skins/Modern.php |
— | — | @@ -21,6 +21,9 @@ |
22 | 22 | var $skinname = 'modern', $stylename = 'modern', |
23 | 23 | $template = 'ModernTemplate', $useHeadElement = true; |
24 | 24 | |
| 25 | + /** |
| 26 | + * @param $out OutputPage |
| 27 | + */ |
25 | 28 | function setupSkinUserCss( OutputPage $out ){ |
26 | 29 | parent::setupSkinUserCss( $out ); |
27 | 30 | $out->addModuleStyles ('skins.modern'); |