StatisticsOverviewWidgetOptionsStorage
in package
Class representing the storage for widget's configuration values.
Table of Contents
- NAMESPACE = 'modules/gambio/statistics/overview/widget_options'
- Storage namespace.
- $factory : StatisticsOverviewFactory
- Factory.
- $repository : ConfigurationStorageRepository
- Repository.
- __construct() : mixed
- Constructor.
- getById() : OptionUpdateSet
- Return widget option update set by widget ID.
- save() : void
- Save widget options.
Constants
NAMESPACE
Storage namespace.
private
mixed
NAMESPACE
= 'modules/gambio/statistics/overview/widget_options'
Properties
$factory
Factory.
private
StatisticsOverviewFactory
$factory
$repository
Repository.
private
ConfigurationStorageRepository
$repository
Methods
__construct()
Constructor.
public
__construct(ConfigurationStorageRepositoryBuilder $builder, StatisticsOverviewFactory $factory) : mixed
Parameters
- $builder : ConfigurationStorageRepositoryBuilder
-
Storage builder.
- $factory : StatisticsOverviewFactory
-
Factory.
Return values
mixed —getById()
Return widget option update set by widget ID.
public
getById(WidgetId $id) : OptionUpdateSet
Parameters
- $id : WidgetId
-
Widget's ID.
Return values
OptionUpdateSet —Widget's configuration values as an update set.
save()
Save widget options.
public
save(WidgetId $id, OptionUpdateSet $updateSet) : void
Parameters
- $id : WidgetId
-
Widget's ID.
- $updateSet : OptionUpdateSet
-
Widget's configuration values as an update set.