From: Antoine Musso Date: Thu, 3 Mar 2005 17:17:03 +0000 (+0000) Subject: random comments / quotes X-Git-Tag: 1.5.0alpha1~679 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=12eca2b1f8e261e20636a45fe8cba8ba9652cea9;p=lhc%2Fweb%2Fwiklou.git random comments / quotes --- diff --git a/includes/Skin.php b/includes/Skin.php index 13ea87dac5..159daefc86 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -81,19 +81,18 @@ class Skin extends Linker { var $rcMoveIndex; /**#@-*/ - function Skin() { - parent::Linker(); - } + /** Constructor, call parent constructor */ + function Skin() { parent::Linker(); } function getSkinNames() { global $wgValidSkinNames; return $wgValidSkinNames; } - function getStylesheet() { - return 'common/wikistandard.css'; - } + /** @return string path to the skin stylesheet */ + function getStylesheet() { return 'common/wikistandard.css'; } + /** @return string skin name */ function getSkinName() { return 'standard'; } @@ -452,17 +451,20 @@ class Skin extends Linker { return " "; } - # This gets called immediately before the tag. - # + /** + * This gets called immediately before the tag. + * @return string HTML to be put after ??? + */ function afterContent() { $printfooter = "
\n" . $this->printFooter() . "
\n"; return $printfooter . $this->doAfterContent(); } + /** @return string Retrievied from HTML text */ function printSource() { global $wgTitle; $url = htmlspecialchars( $wgTitle->getFullURL() ); - return wfMsg( "retrievedfrom", "$url" ); + return wfMsg( 'retrievedfrom', ''.$url.'' ); } function printFooter() { @@ -470,9 +472,8 @@ class Skin extends Linker { "

\n\n

" . $this->pageStats() . "

\n"; } - function doAfterContent() { - # overloaded by derived classes - } + /** overloaded by derived classes */ + function doAfterContent() { } function pageTitleLinks() { global $wgOut, $wgTitle, $wgUser, $wgContLang, $wgUseApproval, $wgRequest; @@ -715,8 +716,6 @@ class Skin extends Linker { } } - - return $s; } @@ -778,7 +777,7 @@ class Skin extends Linker { } if (isset($wgMaxCredits) && $wgMaxCredits != 0) { - require_once("Credits.php"); + require_once('Credits.php'); $s .= ' ' . getCredits($wgArticle, $wgMaxCredits, $wgShowCreditsIfMax); } else { $s .= $this->lastModified(); @@ -955,7 +954,7 @@ class Skin extends Linker { function disclaimerLink() { $disclaimers = wfMsg( 'disclaimers' ); if ($disclaimers == '-') { - return ""; + return ''; } else { return $this->makeKnownLink( wfMsgForContent( 'disclaimerpage' ), $disclaimers );