1 | <?php |
||
20 | class WidgetPageExtension extends DataExtension |
||
21 | { |
||
22 | private static $db = array( |
||
|
|||
23 | 'InheritSideBar' => 'Boolean', |
||
24 | ); |
||
25 | |||
26 | private static $defaults = array( |
||
27 | 'InheritSideBar' => true |
||
28 | ); |
||
29 | |||
30 | private static $has_one = array( |
||
31 | 'SideBar' => WidgetArea::class |
||
32 | ); |
||
33 | |||
34 | public function updateCMSFields(FieldList $fields) |
||
45 | |||
46 | /** |
||
47 | * @return WidgetArea |
||
48 | */ |
||
49 | public function SideBarView() |
||
60 | |||
61 | public function onBeforeDuplicate($duplicatePage) |
||
78 | |||
79 | /** |
||
80 | * Support Translatable so that we don't link WidgetAreas across translations |
||
81 | */ |
||
82 | public function onTranslatableCreate() |
||
87 | } |
||
88 |
This check marks private properties in classes that are never used. Those properties can be removed.