| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 3 | class CwpSiteTreeExtension extends DataExtension |
||
| 4 | { |
||
| 5 | private static $db = array( |
||
|
|
|||
| 6 | 'ShowPageUtilities' => 'Boolean(1)' |
||
| 7 | ); |
||
| 8 | |||
| 9 | private static $defaults = array( |
||
| 10 | 'ShowPageUtilities' => true |
||
| 11 | ); |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Modify the settings for a SiteTree |
||
| 15 | * |
||
| 16 | * {@inheritDoc} |
||
| 17 | * |
||
| 18 | * @param FieldList $fields |
||
| 19 | */ |
||
| 20 | public function updateSettingsFields(FieldList $fields) |
||
| 32 | ) |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function updateFieldLabels(&$labels) |
||
| 41 |