@@ -303,6 +303,9 @@ |
||
303 | 303 | ); |
304 | 304 | } |
305 | 305 | |
306 | + /** |
|
307 | + * @param SubsitesVirtualPage $page |
|
308 | + */ |
|
306 | 309 | protected function fixVersionNumberCache($page) |
307 | 310 | { |
308 | 311 | $pages = func_get_args(); |
@@ -261,8 +261,8 @@ discard block |
||
261 | 261 | * - Is in a group which has access to the subsite this page belongs to |
262 | 262 | * - Is in a group with edit permissions on the "main site" |
263 | 263 | * |
264 | - * @param null $member |
|
265 | - * @return bool |
|
264 | + * @param null|\SilverStripe\Security\Member $member |
|
265 | + * @return false|null |
|
266 | 266 | */ |
267 | 267 | public function canEdit($member = null) |
268 | 268 | { |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | |
293 | 293 | /** |
294 | 294 | * @param null $member |
295 | - * @return bool |
|
295 | + * @return false|null |
|
296 | 296 | */ |
297 | 297 | public function canDelete($member = null) |
298 | 298 | { |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | |
306 | 306 | /** |
307 | 307 | * @param null $member |
308 | - * @return bool |
|
308 | + * @return false|null |
|
309 | 309 | */ |
310 | 310 | public function canAddChildren($member = null) |
311 | 311 | { |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | |
319 | 319 | /** |
320 | 320 | * @param null $member |
321 | - * @return bool |
|
321 | + * @return false|null |
|
322 | 322 | */ |
323 | 323 | public function canPublish($member = null) |
324 | 324 | { |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | |
461 | 461 | /** |
462 | 462 | * @param Member |
463 | - * @return boolean|null |
|
463 | + * @return false|null |
|
464 | 464 | */ |
465 | 465 | public function canCreate($member = null) |
466 | 466 | { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | * for example matching all subdomains on *.example.com with one subsite, |
205 | 205 | * and all subdomains on *.example.org on another. |
206 | 206 | * |
207 | - * @param $host string The host to find the subsite for. If not specified, $_SERVER['HTTP_HOST'] is used. |
|
207 | + * @param string $host string The host to find the subsite for. If not specified, $_SERVER['HTTP_HOST'] is used. |
|
208 | 208 | * @param bool $checkPermissions |
209 | 209 | * @return int Subsite ID |
210 | 210 | */ |
@@ -329,6 +329,10 @@ discard block |
||
329 | 329 | * |
330 | 330 | * @return ArrayList of {@link Subsite} instances. |
331 | 331 | */ |
332 | + |
|
333 | + /** |
|
334 | + * @param DataObject $member |
|
335 | + */ |
|
332 | 336 | public static function all_accessible_sites($includeMainSite = true, $mainSiteTitle = 'Main site', $member = null) |
333 | 337 | { |
334 | 338 | // Rationalise member arguments |
@@ -371,7 +375,7 @@ discard block |
||
371 | 375 | * @param $permCode array|string Either a single permission code or an array of permission codes. |
372 | 376 | * @param $includeMainSite bool If true, the main site will be included if appropriate. |
373 | 377 | * @param $mainSiteTitle string The label to give to the main site |
374 | - * @param $member int|Member The member attempting to access the sites |
|
378 | + * @param DataObject $member int|Member The member attempting to access the sites |
|
375 | 379 | * @return DataList|ArrayList of {@link Subsite} instances |
376 | 380 | */ |
377 | 381 | public static function accessible_sites( |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use SilverStripe\Forms\GridField\GridField; |
16 | 16 | use SilverStripe\Forms\GridField\GridFieldConfig_RecordEditor; |
17 | 17 | use SilverStripe\Forms\HiddenField; |
18 | -use SilverStripe\Forms\Tab; |
|
19 | 18 | use SilverStripe\Forms\ToggleCompositeField; |
20 | 19 | use SilverStripe\ORM\ArrayLib; |
21 | 20 | use SilverStripe\ORM\ArrayList; |
@@ -70,6 +70,9 @@ |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param string $msg |
|
75 | + */ |
|
73 | 76 | public function log($msg) |
74 | 77 | { |
75 | 78 | echo $msg . "\n"; |