Version: current

# Class SiteConfigWidgets

Plug-ins for additional functionality in your DataObjects.

Note: DataObjectDecorators are not actually Decorators in the GoF Design Patterns sense of the word. A better name for this class would be DataExtension. However, in the interests of backward compatibility we haven't renamed the class.

  Extension
  DataObjectDecorator
  SiteConfigWidgets

Package: sapphire\model
Located at widgets/code/SiteConfigWidgets.php

## Methods summary

`public array` | # `extraStatics( )` Define extra database fields Define extra database fields Return a map where the keys are db, has_one, etc, and the values are additional fields/relations to be defined. #### Returns `array` Returns a map where the keys are db, has_one, etc, and the values are additional fields/relations to be defined. #### Overrides `DataObjectDecorator::extraStatics`
`public static` | # `get_widget_areas( )`
`public static` | # `set_widget_areas( mixed $areas )`
`public static` | # `add_widget_area( mixed $techName, mixed $class )`
`public static` | # `del_widget_area( mixed $techName )`
`public static` | # `set_allowed_area_widgets( mixed $widgets )`
`public static array` | # `get_allowed_area_widgets( mixed $area = false )` Возвращает список виджетов разрешенных для области Возвращает список виджетов разрешенных для области #### Parameters $area mixed $area - область или ее имя #### Returns `array` - список разрешенных виджетов
`public static` | # `set_readonly_widget_areas( mixed $areas )`
`public static` | # `get_readonly_widget_areas( )`
`public static` | # `is_area_readonly( mixed $name )`
`public` | # `requireDefaultRecords( )` #### Overrides `DataObjectDecorator::requireDefaultRecords`
`public` | # `getActiveWidgetAreas( )`
`public` | # `WidgetArea( mixed $techName )`
`public` | # `getAreaWidgets( mixed $techName, mixed $all = false )`

### Methods inherited from DataObjectDecorator

`augmentDatabase()`, `augmentSQL()`, `augmentWrite()`, `can()`, `canCreate()`, `canDelete()`, `canEdit()`, `flushCache()`, `load_extra_statics()`, `onAfterDelete()`, `onAfterWrite()`, `onBeforeDelete()`, `onBeforeWrite()`, `populateDefaults()`, `updateCMSActions()`, `updateCMSFields()`, `updateFieldLabels()`, `updateFrontEndFields()`, `updateSummaryFields()`

### Methods inherited from Extension

`__construct()`, `clearOwner()`, `getOwner()`, `get_classname_without_arguments()`, `setOwner()`

### Magic methods summary

## Properties summary

### Properties inherited from DataObjectDecorator

`$decoratable_statics`

### Properties inherited from Extension

`$allowed_actions`, `$class`, `$owner`, `$ownerBaseClass`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -