@@ -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()) |
@@ -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(); |
@@ -1023,9 +1023,6 @@ discard block |
||
1023 | 1023 | * @uses DataExtension->canCreate() |
1024 | 1024 | * |
1025 | 1025 | * @param Member $member |
1026 | - * @param array $context Optional array which may contain array('Parent' => $parentObj) |
|
1027 | - * If a parent page is known, it will be checked for validity. |
|
1028 | - * If omitted, it will be assumed this is to be created as a top level page. |
|
1029 | 1026 | * @return bool True if the current user can create pages on this class. |
1030 | 1027 | */ |
1031 | 1028 | public function canCreate($member = null) { |
@@ -1129,6 +1126,9 @@ discard block |
||
1129 | 1126 | return $this->canEdit($member); |
1130 | 1127 | } |
1131 | 1128 | |
1129 | + /** |
|
1130 | + * @param DataObject $member |
|
1131 | + */ |
|
1132 | 1132 | public function canDeleteFromLive($member = null) { |
1133 | 1133 | // Standard mechanism for accepting permission changes from extensions |
1134 | 1134 | $extended = $this->extendedCan('canDeleteFromLive', $member); |
@@ -1330,7 +1330,7 @@ discard block |
||
1330 | 1330 | /** |
1331 | 1331 | * Get the 'can edit' information for a number of SiteTree pages. |
1332 | 1332 | * |
1333 | - * @param array $ids An array of IDs of the SiteTree pages to look up |
|
1333 | + * @param integer[] $ids An array of IDs of the SiteTree pages to look up |
|
1334 | 1334 | * @param int $memberID ID of member |
1335 | 1335 | * @param bool $useCached Return values from the permission cache if they exist |
1336 | 1336 | * @return array |
@@ -1403,7 +1403,7 @@ discard block |
||
1403 | 1403 | * |
1404 | 1404 | * @param string $condition The PHP condition to be evaluated. The page will be called $item |
1405 | 1405 | * @param array $collator An array, passed by reference, to collect all of the matching descendants. |
1406 | - * @return bool |
|
1406 | + * @return boolean|null |
|
1407 | 1407 | */ |
1408 | 1408 | public function collateDescendants($condition, &$collator) { |
1409 | 1409 | if($children = $this->Children()) { |