1 | <?php |
||
6 | class GridFieldSiteTree_PageHolderExtension extends DataExtension |
||
|
|||
7 | { |
||
8 | |||
9 | /** |
||
10 | * Prevent children pages from showing up in the SiteTree TreeView |
||
11 | **/ |
||
12 | public function AllChildrenIncludingDeleted() |
||
16 | |||
17 | /* |
||
18 | * Create a GridField to display the pages. |
||
19 | * |
||
20 | * @see CMSMain::ListViewForm() heavily based on this code. |
||
21 | * @param string $name |
||
22 | * @param string $title |
||
23 | * @param SS_List $dataList |
||
24 | * @return GridField |
||
25 | */ |
||
26 | public function getGridFieldSiteTreeField($name, $title=null, SS_List $dataList = null) |
||
64 | } |
||
65 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.