Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php |
— | — | @@ -127,6 +127,11 @@ |
128 | 128 | return 'http://' . $this->hosts[$site] . '/'; |
129 | 129 | } |
130 | 130 | |
| 131 | + /** |
| 132 | + * @param string $minor Language |
| 133 | + * @param string $major Site |
| 134 | + * @return Mixed |
| 135 | + */ |
131 | 136 | public function getUrl( $minor, $major ){ |
132 | 137 | global $wgConf; |
133 | 138 | $dbname = $minor . $major; |
— | — | @@ -135,10 +140,20 @@ |
136 | 141 | array( 'lang' => $minor, 'site' => $major ) ); |
137 | 142 | } |
138 | 143 | |
| 144 | + /** |
| 145 | + * @param string $minor Language |
| 146 | + * @param string $major Site |
| 147 | + * @return bool |
| 148 | + */ |
139 | 149 | public function exist( $minor, $major ){ |
140 | 150 | return !empty( $this->matrix[$major][$minor] ); |
141 | 151 | } |
142 | 152 | |
| 153 | + /** |
| 154 | + * @param string $minor Language |
| 155 | + * @param string $major Site |
| 156 | + * @return bool |
| 157 | + */ |
143 | 158 | public function isClosed( $minor, $major ) { |
144 | 159 | global $wgSiteMatrixClosedSites; |
145 | 160 | |
— | — | @@ -163,6 +178,10 @@ |
164 | 179 | return in_array( $dbname, $this->closed ); |
165 | 180 | } |
166 | 181 | |
| 182 | + /** |
| 183 | + * @param string $dbname DatabaseName |
| 184 | + * @return bool |
| 185 | + */ |
167 | 186 | public function isPrivate( $dbname ) { |
168 | 187 | global $wgSiteMatrixPrivateSites; |
169 | 188 | |
— | — | @@ -173,6 +192,10 @@ |
174 | 193 | return in_array( $dbname, $this->private ); |
175 | 194 | } |
176 | 195 | |
| 196 | + /** |
| 197 | + * @param string $dbname DatabaseName |
| 198 | + * @return bool |
| 199 | + */ |
177 | 200 | public function isFishbowl( $dbname ) { |
178 | 201 | global $wgSiteMatrixFishbowlSites; |
179 | 202 | |