Service
in package
implements
StatisticsOverviewService
Interfaces, Classes and Traits
Table of Contents
- DEFAULT_LANGUAGE_CODE = "de"
- DEFAULT_WIDGET_HEIGHT = 200
- DEFAULT_WIDGET_HORIZONTAL_POSITION = 0
- DEFAULT_WIDGET_VERTICAL_POSITION = 0
- DEFAULT_WIDGET_WIDTH = 400
- $factory : Factory
- $repository : Repository
- __construct() : mixed
- Constructor.
- addWidget() : void
- Add widget.
- configureWidget() : void
- Change widget options.
- deleteWidget() : void
- Delete widget.
- getWidgetById() : Widget
- Get widget by ID.
- getWidgetDefinitions() : WidgetDefinitions
- Get widget definitions.
- getWidgets() : Widgets
- Get widgets.
- moveWidget() : void
- Change widget position.
- renameWidget() : void
- Rename widget.
- resizeWidget() : void
- Change widget size.
Constants
DEFAULT_LANGUAGE_CODE
private
mixed
DEFAULT_LANGUAGE_CODE
= "de"
DEFAULT_WIDGET_HEIGHT
private
mixed
DEFAULT_WIDGET_HEIGHT
= 200
DEFAULT_WIDGET_HORIZONTAL_POSITION
private
mixed
DEFAULT_WIDGET_HORIZONTAL_POSITION
= ""
DEFAULT_WIDGET_VERTICAL_POSITION
private
mixed
DEFAULT_WIDGET_VERTICAL_POSITION
= ""
DEFAULT_WIDGET_WIDTH
private
mixed
DEFAULT_WIDGET_WIDTH
= 400
Properties
$factory
private
Factory
$factory
$repository
private
Repository
$repository
Methods
__construct()
Constructor.
public
__construct(Repository $repository, Factory $factory) : mixed
Parameters
- $repository : Repository
- $factory : Factory
Return values
mixed —addWidget()
Add widget.
public
addWidget(string $type) : void
Parameters
- $type : string
Tags
Return values
void —configureWidget()
Change widget options.
public
configureWidget(int $id, array<string|int, mixed> $updateSet) : void
Parameters
- $id : int
- $updateSet : array<string|int, mixed>
Tags
Return values
void —deleteWidget()
Delete widget.
public
deleteWidget(int $id) : void
Parameters
- $id : int
Tags
Return values
void —getWidgetById()
Get widget by ID.
public
getWidgetById(int $id) : Widget
Parameters
- $id : int
Tags
Return values
Widget —getWidgetDefinitions()
Get widget definitions.
public
getWidgetDefinitions() : WidgetDefinitions
Tags
Return values
WidgetDefinitions —getWidgets()
Get widgets.
public
getWidgets() : Widgets
Tags
Return values
Widgets —moveWidget()
Change widget position.
public
moveWidget(int $id, int $horizontalPosition, int $verticalPosition) : void
Parameters
- $id : int
- $horizontalPosition : int
- $verticalPosition : int
Tags
Return values
void —renameWidget()
Rename widget.
public
renameWidget(int $id, string $label) : void
Parameters
- $id : int
- $label : string
Tags
Return values
void —resizeWidget()
Change widget size.
public
resizeWidget(int $id, int $width, int $height) : void
Parameters
- $id : int
- $width : int
- $height : int