@@ -538,6 +538,10 @@ |
||
| 538 | 538 | return new Folder(); |
| 539 | 539 | } |
| 540 | 540 | |
| 541 | + /** |
|
| 542 | + * @param string $childrenMethod |
|
| 543 | + * @param string $numChildrenMethod |
|
| 544 | + */ |
|
| 541 | 545 | public function getSiteTreeFor($className, $rootID = null, $childrenMethod = null, $numChildrenMethod = null, $filterFunction = null, $minNodeCount = 30) { |
| 542 | 546 | if (!$childrenMethod) $childrenMethod = 'ChildFolders'; |
| 543 | 547 | if (!$numChildrenMethod) $numChildrenMethod = 'numChildFolders'; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @param SS_HTTPRequest $request |
| 43 | - * @return array |
|
| 43 | + * @return SS_HTTPResponse |
|
| 44 | 44 | */ |
| 45 | 45 | public function show($request) { |
| 46 | 46 | $form = $this->ShowVersionForm($request->param('VersionID')); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * @param SS_HTTPRequest $request |
| 62 | - * @return array |
|
| 62 | + * @return SS_HTTPResponse |
|
| 63 | 63 | */ |
| 64 | 64 | public function compare($request) { |
| 65 | 65 | $form = $this->CompareVersionsForm( |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | * @param array |
| 279 | 279 | * @param Form |
| 280 | 280 | * |
| 281 | - * @return html |
|
| 281 | + * @return null|HTMLText |
|
| 282 | 282 | */ |
| 283 | 283 | public function doCompare($data, $form) { |
| 284 | 284 | $versions = $data['Versions']; |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | * @param array |
| 316 | 316 | * @param Form |
| 317 | 317 | * |
| 318 | - * @return html |
|
| 318 | + * @return null|HTMLText |
|
| 319 | 319 | */ |
| 320 | 320 | public function doShowVersion($data, $form) { |
| 321 | 321 | $versionID = null; |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | |
| 345 | 345 | /** |
| 346 | 346 | * @param int|null $versionID |
| 347 | - * @return Form |
|
| 347 | + * @return null|CMSForm |
|
| 348 | 348 | */ |
| 349 | 349 | public function ShowVersionForm($versionID = null) { |
| 350 | 350 | if(!$versionID) return null; |
@@ -212,6 +212,7 @@ discard block |
||
| 212 | 212 | |
| 213 | 213 | /** |
| 214 | 214 | * @uses ErrorPage::response_for() |
| 215 | + * @param integer $code |
|
| 215 | 216 | */ |
| 216 | 217 | public function httpError($code, $message = null) { |
| 217 | 218 | // Don't use the HTML response for media requests |
@@ -232,6 +233,7 @@ discard block |
||
| 232 | 233 | |
| 233 | 234 | /** |
| 234 | 235 | * Returns the associated database record |
| 236 | + * @return SiteTree |
|
| 235 | 237 | */ |
| 236 | 238 | public function data() { |
| 237 | 239 | return $this->dataRecord; |
@@ -89,6 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * @param the url that prefixes the page url segment field |
| 92 | + * @param string $url |
|
| 92 | 93 | */ |
| 93 | 94 | public function setURLPrefix($url){ |
| 94 | 95 | $this->urlPrefix = $url; |
@@ -96,7 +97,7 @@ discard block |
||
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | /** |
| 99 | - * @return the url prefixes the page url segment field to show in template |
|
| 100 | + * @return string url prefixes the page url segment field to show in template |
|
| 100 | 101 | */ |
| 101 | 102 | public function getURLPrefix(){ |
| 102 | 103 | return $this->urlPrefix; |
@@ -107,7 +108,7 @@ discard block |
||
| 107 | 108 | } |
| 108 | 109 | |
| 109 | 110 | /** |
| 110 | - * @return Indicator for UI to respond to changes accurately, |
|
| 111 | + * @return string for UI to respond to changes accurately, |
|
| 111 | 112 | * and auto-update the field value if changes to the default occur. |
| 112 | 113 | * Does not set the field default value. |
| 113 | 114 | */ |
@@ -115,6 +116,9 @@ discard block |
||
| 115 | 116 | return $this->defaultUrl; |
| 116 | 117 | } |
| 117 | 118 | |
| 119 | + /** |
|
| 120 | + * @param string $url |
|
| 121 | + */ |
|
| 118 | 122 | public function setDefaultURL($url) { |
| 119 | 123 | $this->defaultUrl = $url; |
| 120 | 124 | return $this; |
@@ -961,7 +961,7 @@ discard block |
||
| 961 | 961 | * |
| 962 | 962 | * @param string $stage |
| 963 | 963 | * @param Member $member |
| 964 | - * @return bool |
|
| 964 | + * @return boolean|string |
|
| 965 | 965 | */ |
| 966 | 966 | public function canViewStage($stage = 'Live', $member = null) { |
| 967 | 967 | $oldMode = Versioned::get_reading_mode(); |
@@ -1132,6 +1132,9 @@ discard block |
||
| 1132 | 1132 | return $this->canEdit($member); |
| 1133 | 1133 | } |
| 1134 | 1134 | |
| 1135 | + /** |
|
| 1136 | + * @param DataObject $member |
|
| 1137 | + */ |
|
| 1135 | 1138 | public function canDeleteFromLive($member = null) { |
| 1136 | 1139 | // Standard mechanism for accepting permission changes from extensions |
| 1137 | 1140 | $extended = $this->extendedCan('canDeleteFromLive', $member); |
@@ -1333,7 +1336,7 @@ discard block |
||
| 1333 | 1336 | /** |
| 1334 | 1337 | * Get the 'can edit' information for a number of SiteTree pages. |
| 1335 | 1338 | * |
| 1336 | - * @param array $ids An array of IDs of the SiteTree pages to look up |
|
| 1339 | + * @param integer[] $ids An array of IDs of the SiteTree pages to look up |
|
| 1337 | 1340 | * @param int $memberID ID of member |
| 1338 | 1341 | * @param bool $useCached Return values from the permission cache if they exist |
| 1339 | 1342 | * @return array |
@@ -1406,7 +1409,7 @@ discard block |
||
| 1406 | 1409 | * |
| 1407 | 1410 | * @param string $condition The PHP condition to be evaluated. The page will be called $item |
| 1408 | 1411 | * @param array $collator An array, passed by reference, to collect all of the matching descendants. |
| 1409 | - * @return bool |
|
| 1412 | + * @return boolean|null |
|
| 1410 | 1413 | */ |
| 1411 | 1414 | public function collateDescendants($condition, &$collator) { |
| 1412 | 1415 | if($children = $this->Children()) { |
@@ -51,10 +51,6 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * Extend through {@link updateBackLinkTracking()} in your own {@link Extension}. |
| 53 | 53 | * |
| 54 | - * @param string|array $filter |
|
| 55 | - * @param string $sort |
|
| 56 | - * @param string $join |
|
| 57 | - * @param string $limit |
|
| 58 | 54 | * @return ManyManyList |
| 59 | 55 | */ |
| 60 | 56 | public function BackLinkTracking() { |
@@ -374,6 +374,7 @@ |
||
| 374 | 374 | |
| 375 | 375 | /** |
| 376 | 376 | * Ensure we have an up-to-date version of everything. |
| 377 | + * @param DataObject $source |
|
| 377 | 378 | */ |
| 378 | 379 | public function copyFrom($source, $updateImageTracking = true) { |
| 379 | 380 | if($source) { |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | See http://open.silverstripe.com/ticket/2847 |
| 20 | 20 | "; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param SS_HTTPRequest $request |
|
| 24 | + */ |
|
| 22 | 25 | public function run($request) { |
| 23 | 26 | // transfer values for changed column name |
| 24 | 27 | foreach(array('SiteTree','SiteTree_Live','SiteTree_versions') as $table) { |
@@ -252,7 +252,7 @@ |
||
| 252 | 252 | /** |
| 253 | 253 | * Write out the published version of the page to the filesystem |
| 254 | 254 | * |
| 255 | - * @return true if the page write was successful |
|
| 255 | + * @return boolean if the page write was successful |
|
| 256 | 256 | */ |
| 257 | 257 | public function writeStaticPage() { |
| 258 | 258 | if(!self::config()->enable_static_file) { |