@@ -43,7 +43,7 @@ |
||
| 43 | 43 | /** |
| 44 | 44 | * @uses ModelAsController::getNestedController() |
| 45 | 45 | * @param SS_HTTPRequest $request |
| 46 | - * @param DataModel $model |
|
| 46 | + * @param null|DataModel $model |
|
| 47 | 47 | * @return SS_HTTPResponse |
| 48 | 48 | */ |
| 49 | 49 | public function handleRequest(SS_HTTPRequest $request, DataModel $model) { |
@@ -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 string |
|
| 51 | 52 | */ |
| 52 | 53 | public function currentPageID() { |
| 53 | 54 | if(is_numeric($this->getRequest()->requestVar('ID'))) { |
@@ -562,6 +563,10 @@ discard block |
||
| 562 | 563 | return new Folder(); |
| 563 | 564 | } |
| 564 | 565 | |
| 566 | + /** |
|
| 567 | + * @param string $childrenMethod |
|
| 568 | + * @param string $numChildrenMethod |
|
| 569 | + */ |
|
| 565 | 570 | public function getSiteTreeFor($className, $rootID = null, $childrenMethod = null, $numChildrenMethod = null, $filterFunction = null, $minNodeCount = 30) { |
| 566 | 571 | if (!$childrenMethod) $childrenMethod = 'ChildFolders'; |
| 567 | 572 | if (!$numChildrenMethod) $numChildrenMethod = 'numChildFolders'; |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | * Gets the list of filtered pages |
| 114 | 114 | * |
| 115 | 115 | * @see {@link SiteTree::getStatusFlags()} |
| 116 | - * @return SS_List |
|
| 116 | + * @return DataList |
|
| 117 | 117 | */ |
| 118 | 118 | abstract public function getFilteredPages(); |
| 119 | 119 | |
@@ -680,7 +680,7 @@ discard block |
||
| 680 | 680 | * @param boolean $unlinked Whether to link page titles. |
| 681 | 681 | * @param boolean|string $stopAtPageType ClassName of a page to stop the upwards traversal. |
| 682 | 682 | * @param boolean $showHidden Include pages marked with the attribute ShowInMenus = 0 |
| 683 | - * @return HTMLText The breadcrumb trail. |
|
| 683 | + * @return SilverStripe\Model\FieldType\DBField The breadcrumb trail. |
|
| 684 | 684 | */ |
| 685 | 685 | public function Breadcrumbs($maxDepth = 20, $unlinked = false, $stopAtPageType = false, $showHidden = false) { |
| 686 | 686 | $pages = $this->getBreadcrumbItems($maxDepth, $stopAtPageType, $showHidden); |
@@ -1313,7 +1313,7 @@ discard block |
||
| 1313 | 1313 | * |
| 1314 | 1314 | * @param string $condition The PHP condition to be evaluated. The page will be called $item |
| 1315 | 1315 | * @param array $collator An array, passed by reference, to collect all of the matching descendants. |
| 1316 | - * @return bool |
|
| 1316 | + * @return boolean|null |
|
| 1317 | 1317 | */ |
| 1318 | 1318 | public function collateDescendants($condition, &$collator) { |
| 1319 | 1319 | if($children = $this->Children()) { |