r84366 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84365‎ | r84366 | r84367 >
Date:01:05, 20 March 2011
Author:reedy
Status:ok (Comments)
Tags:
Comment:
Method documentation
Modified paths:
  • /trunk/extensions/SiteMatrix/SiteMatrix_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php
@@ -127,6 +127,11 @@
128128 return 'http://' . $this->hosts[$site] . '/';
129129 }
130130
 131+ /**
 132+ * @param string $minor Language
 133+ * @param string $major Site
 134+ * @return Mixed
 135+ */
131136 public function getUrl( $minor, $major ){
132137 global $wgConf;
133138 $dbname = $minor . $major;
@@ -135,10 +140,20 @@
136141 array( 'lang' => $minor, 'site' => $major ) );
137142 }
138143
 144+ /**
 145+ * @param string $minor Language
 146+ * @param string $major Site
 147+ * @return bool
 148+ */
139149 public function exist( $minor, $major ){
140150 return !empty( $this->matrix[$major][$minor] );
141151 }
142152
 153+ /**
 154+ * @param string $minor Language
 155+ * @param string $major Site
 156+ * @return bool
 157+ */
143158 public function isClosed( $minor, $major ) {
144159 global $wgSiteMatrixClosedSites;
145160
@@ -163,6 +178,10 @@
164179 return in_array( $dbname, $this->closed );
165180 }
166181
 182+ /**
 183+ * @param string $dbname DatabaseName
 184+ * @return bool
 185+ */
167186 public function isPrivate( $dbname ) {
168187 global $wgSiteMatrixPrivateSites;
169188
@@ -173,6 +192,10 @@
174193 return in_array( $dbname, $this->private );
175194 }
176195
 196+ /**
 197+ * @param string $dbname DatabaseName
 198+ * @return bool
 199+ */
177200 public function isFishbowl( $dbname ) {
178201 global $wgSiteMatrixFishbowlSites;
179202

Comments

#Comment by IAlex (talk | contribs)   10:20, 27 May 2011

Marking OK even with the whitespace issue on line 152 :)

Status & tagging log