@@ -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; |
@@ -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) { |
@@ -701,7 +701,7 @@ discard block |
||
701 | 701 | |
702 | 702 | /** |
703 | 703 | * @param SS_HTTPRequest $request |
704 | - * @return string HTML |
|
704 | + * @return HTMLText HTML |
|
705 | 705 | */ |
706 | 706 | public function treeview($request) { |
707 | 707 | return $this->renderWith($this->getTemplatesWithSuffix('_TreeView')); |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | |
710 | 710 | /** |
711 | 711 | * @param SS_HTTPRequest $request |
712 | - * @return string HTML |
|
712 | + * @return HTMLText HTML |
|
713 | 713 | */ |
714 | 714 | public function listview($request) { |
715 | 715 | return $this->renderWith($this->getTemplatesWithSuffix('_ListView')); |
@@ -1161,7 +1161,7 @@ discard block |
||
1161 | 1161 | } |
1162 | 1162 | |
1163 | 1163 | /** |
1164 | - * @return array |
|
1164 | + * @return SS_HTTPResponse|null |
|
1165 | 1165 | */ |
1166 | 1166 | public function rollback() { |
1167 | 1167 | return $this->doRollback(array( |
@@ -1176,7 +1176,7 @@ discard block |
||
1176 | 1176 | * @param array |
1177 | 1177 | * @param Form |
1178 | 1178 | * |
1179 | - * @return html |
|
1179 | + * @return SS_HTTPResponse|null |
|
1180 | 1180 | */ |
1181 | 1181 | public function doRollback($data, $form) { |
1182 | 1182 | $this->extend('onBeforeRollback', $data['ID']); |
@@ -48,6 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Return fake-ID "root" if no ID is found (needed to upload files into the root-folder) |
51 | + * @return integer |
|
51 | 52 | */ |
52 | 53 | public function currentPageID() { |
53 | 54 | if(is_numeric($this->getRequest()->requestVar('ID'))) { |
@@ -528,6 +529,10 @@ discard block |
||
528 | 529 | return new Folder(); |
529 | 530 | } |
530 | 531 | |
532 | + /** |
|
533 | + * @param string $childrenMethod |
|
534 | + * @param string $numChildrenMethod |
|
535 | + */ |
|
531 | 536 | public function getSiteTreeFor($className, $rootID = null, $childrenMethod = null, $numChildrenMethod = null, $filterFunction = null, $minNodeCount = 30) { |
532 | 537 | if (!$childrenMethod) $childrenMethod = 'ChildFolders'; |
533 | 538 | if (!$numChildrenMethod) $numChildrenMethod = 'numChildFolders'; |
@@ -232,7 +232,7 @@ |
||
232 | 232 | /** |
233 | 233 | * Write out the published version of the page to the filesystem |
234 | 234 | * |
235 | - * @return mixed Either true, or an error |
|
235 | + * @return boolean Either true, or an error |
|
236 | 236 | */ |
237 | 237 | public function writeStaticPage() { |
238 | 238 | // Run the page (reset the theme, it might've been disabled by LeftAndMain::init()) |
@@ -986,9 +986,6 @@ discard block |
||
986 | 986 | * @uses DataExtension->canCreate() |
987 | 987 | * |
988 | 988 | * @param Member $member |
989 | - * @param array $context Optional array which may contain array('Parent' => $parentObj) |
|
990 | - * If a parent page is known, it will be checked for validity. |
|
991 | - * If omitted, it will be assumed this is to be created as a top level page. |
|
992 | 989 | * @return bool True if the current user can create pages on this class. |
993 | 990 | */ |
994 | 991 | public function canCreate($member = null) { |
@@ -1092,6 +1089,9 @@ discard block |
||
1092 | 1089 | return $this->canEdit($member); |
1093 | 1090 | } |
1094 | 1091 | |
1092 | + /** |
|
1093 | + * @param DataObject $member |
|
1094 | + */ |
|
1095 | 1095 | public function canDeleteFromLive($member = null) { |
1096 | 1096 | // Standard mechanism for accepting permission changes from extensions |
1097 | 1097 | $extended = $this->extendedCan('canDeleteFromLive', $member); |
@@ -1293,7 +1293,7 @@ discard block |
||
1293 | 1293 | /** |
1294 | 1294 | * Get the 'can edit' information for a number of SiteTree pages. |
1295 | 1295 | * |
1296 | - * @param array $ids An array of IDs of the SiteTree pages to look up |
|
1296 | + * @param integer[] $ids An array of IDs of the SiteTree pages to look up |
|
1297 | 1297 | * @param int $memberID ID of member |
1298 | 1298 | * @param bool $useCached Return values from the permission cache if they exist |
1299 | 1299 | * @return array |
@@ -1366,7 +1366,7 @@ discard block |
||
1366 | 1366 | * |
1367 | 1367 | * @param string $condition The PHP condition to be evaluated. The page will be called $item |
1368 | 1368 | * @param array $collator An array, passed by reference, to collect all of the matching descendants. |
1369 | - * @return bool |
|
1369 | + * @return boolean|null |
|
1370 | 1370 | */ |
1371 | 1371 | public function collateDescendants($condition, &$collator) { |
1372 | 1372 | if($children = $this->Children()) { |