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' ); |
— | — | @@ -55,6 +58,9 @@ |
56 | 59 | |
57 | 60 | class CologneBlueTemplate extends LegacyTemplate { |
58 | 61 | |
| 62 | + /** |
| 63 | + * @return string |
| 64 | + */ |
59 | 65 | function doBeforeContent() { |
60 | 66 | $mainPageObj = Title::newMainPage(); |
61 | 67 | |
— | — | @@ -95,6 +101,9 @@ |
96 | 102 | return $s; |
97 | 103 | } |
98 | 104 | |
| 105 | + /** |
| 106 | + * @return string |
| 107 | + */ |
99 | 108 | function doAfterContent(){ |
100 | 109 | global $wgLang; |
101 | 110 | |
— | — | @@ -136,6 +145,9 @@ |
137 | 146 | return $s; |
138 | 147 | } |
139 | 148 | |
| 149 | + /** |
| 150 | + * @return string |
| 151 | + */ |
140 | 152 | function sysLinks() { |
141 | 153 | global $wgUser, $wgLang; |
142 | 154 | $li = SpecialPage::getTitleFor( 'Userlogin' ); |
— | — | @@ -194,6 +206,8 @@ |
195 | 207 | /** |
196 | 208 | * Compute the sidebar |
197 | 209 | * @access private |
| 210 | + * |
| 211 | + * @return string |
198 | 212 | */ |
199 | 213 | function quickBar(){ |
200 | 214 | global $wgOut, $wgUser; |
— | — | @@ -347,11 +361,19 @@ |
348 | 362 | return $s; |
349 | 363 | } |
350 | 364 | |
| 365 | + /** |
| 366 | + * @param $key string |
| 367 | + * @return string |
| 368 | + */ |
351 | 369 | function menuHead( $key ) { |
352 | 370 | $s = "\n<h6>" . wfMsg( $key ) . "</h6>"; |
353 | 371 | return $s; |
354 | 372 | } |
355 | 373 | |
| 374 | + /** |
| 375 | + * @param $label string |
| 376 | + * @return string |
| 377 | + */ |
356 | 378 | function searchForm( $label = '' ) { |
357 | 379 | global $wgRequest, $wgUseTwoButtonsSearchForm; |
358 | 380 | |
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' ); |
— | — | @@ -51,6 +54,9 @@ |
52 | 55 | |
53 | 56 | class StandardTemplate extends LegacyTemplate { |
54 | 57 | |
| 58 | + /** |
| 59 | + * @return string |
| 60 | + */ |
55 | 61 | function doAfterContent() { |
56 | 62 | global $wgContLang, $wgLang; |
57 | 63 | wfProfileIn( __METHOD__ ); |
— | — | @@ -99,6 +105,9 @@ |
100 | 106 | return $s; |
101 | 107 | } |
102 | 108 | |
| 109 | + /** |
| 110 | + * @return string |
| 111 | + */ |
103 | 112 | function quickBar() { |
104 | 113 | global $wgOut, $wgUser, $wgRequest, $wgContLang; |
105 | 114 | |
Index: trunk/phase3/skins/Vector.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | } |
110 | 110 | if ( isset( $link['tooltiponly'] ) && $link['tooltiponly'] ) { |
111 | 111 | $nav[$section][$key]['key'] = |
112 | | - Linker::tooltip( $xmlID ); |
| 112 | + Linker::titleAttrib( $xmlID ); |
113 | 113 | } else { |
114 | 114 | $nav[$section][$key]['key'] = |
115 | 115 | Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( $xmlID ) ); |
— | — | @@ -258,6 +258,8 @@ |
259 | 259 | |
260 | 260 | /** |
261 | 261 | * Render a series of portals |
| 262 | + * |
| 263 | + * @params $portals array |
262 | 264 | */ |
263 | 265 | private function renderPortals( $portals ) { |
264 | 266 | // Force the rendering of the following portals |
— | — | @@ -297,7 +299,7 @@ |
298 | 300 | $msg = $name; |
299 | 301 | } |
300 | 302 | ?> |
301 | | -<div class="portal" id='<?php echo Sanitizer::escapeId( "p-$name" ) ?>'<?php echo Linker::tooltip( 'p-' . $name ) ?>> |
| 303 | +<div class="portal" id='<?php echo Sanitizer::escapeId( "p-$name" ) ?>'<?php echo Linker::titleAttrib( 'p-' . $name ) ?>> |
302 | 304 | <h5<?php $this->html( 'userlangattributes' ) ?>><?php $msgObj = wfMessage( $msg ); echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $msg ); ?></h5> |
303 | 305 | <div class="body"> |
304 | 306 | <?php |
— | — | @@ -327,6 +329,8 @@ |
328 | 330 | /** |
329 | 331 | * Render one or more navigations elements by name, automatically reveresed |
330 | 332 | * when UI is in RTL mode |
| 333 | + * |
| 334 | + * @param $elements array |
331 | 335 | */ |
332 | 336 | private function renderNavigation( $elements ) { |
333 | 337 | global $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgUser; |
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/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/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 ); |
— | — | @@ -211,6 +214,8 @@ |
212 | 215 | /** |
213 | 216 | * Prints the cactions bar. |
214 | 217 | * Shared between MonoBook and Modern |
| 218 | + * |
| 219 | + * @param $skin Skin |
215 | 220 | */ |
216 | 221 | function cactions( Skin $skin ) { |
217 | 222 | ?> |
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'); |
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 | |