forked from micmania1/silverstripe-lumberjack
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec55daa
commit 1c89ad0
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,8 @@ | |
* @subpackage lumberjack | ||
* | ||
* @author Michael Strong <[email protected]> | ||
* | ||
* @extends SiteTreeExtension<SiteTree&static> | ||
*/ | ||
class Lumberjack extends SiteTreeExtension | ||
{ | ||
|
@@ -76,7 +78,7 @@ public function updateCMSFields(FieldList $fields) | |
* | ||
* @param bool $showAll Include all of the elements, even those not shown in the menus. Only applicable when | ||
* extension is applied to {@link SiteTree}. | ||
* @return DataList | ||
* @return DataList<SiteTree> | ||
*/ | ||
public function stageChildren($showAll = false) | ||
{ | ||
|
@@ -111,7 +113,7 @@ public function stageChildren($showAll = false) | |
* instance from the original. | ||
* | ||
* @param DataList $list | ||
* @return DataList | ||
* @return DataList<SiteTree> | ||
*/ | ||
protected function excludeSiteTreeClassNames($list) | ||
{ | ||
|
@@ -129,7 +131,7 @@ protected function excludeSiteTreeClassNames($list) | |
* @param bool $showAll Include all of the elements, even those not shown in the menus. Only | ||
* applicable when extension is applied to {@link SiteTree}. | ||
* @param bool $onlyDeletedFromStage Only return items that have been deleted from stage | ||
* @return DataList | ||
* @return DataList<SiteTree> | ||
* @throws Exception | ||
*/ | ||
public function liveChildren($showAll = false, $onlyDeletedFromStage = false) | ||
|
@@ -223,7 +225,7 @@ protected function shouldFilter() | |
* This also allows the owner class to override this method, e.g. to provide custom ordering. | ||
* | ||
* @var array $excluded List of class names excluded from the SiteTree | ||
* @return DataList | ||
* @return DataList<SiteTree> | ||
*/ | ||
public function getLumberjackPagesForGridfield($excluded = array()) | ||
{ | ||
|