DashboardRepository
Table of Contents
Properties
-
$allowedFields
: array<string|int, string>
-
$connectionPool
: ConnectionPool
-
$container
: ContainerInterface
-
$widgetRegistry
: WidgetRegistry
-
$widgets
: array<string|int, WidgetInterface>
Methods
-
__construct()
: mixed
-
create()
: Dashboard|null
-
delete()
: void
-
getDashboardByIdentifier()
: Dashboard|null
-
getDashboardsForUser()
: array<string|int, mixed>
-
updateDashboardSettings()
: int|null
-
updateWidgetConfig()
: void
-
checkAllowedFields()
: array<string|int, mixed>
-
createFromRow()
: Dashboard
-
getQueryBuilder()
: QueryBuilder
$allowedFields
protected
array<string|int, string>
$allowedFields
= ['title']
$connectionPool
read-only
protected
ConnectionPool
$connectionPool
$container
read-only
protected
ContainerInterface
$container
protected
WidgetRegistry
$widgetRegistry
protected
array<string|int, WidgetInterface>
$widgets
= []
__construct()
public
__construct(ConnectionPool $connectionPool, WidgetRegistry $widgetRegistry, ContainerInterface $container) : mixed
Parameters
-
$connectionPool
: ConnectionPool
-
-
$widgetRegistry
: WidgetRegistry
-
-
$container
: ContainerInterface
-
create()
public
create(DashboardPreset $dashboardPreset, int $userId[, string $title = '' ]) : Dashboard|null
Parameters
-
$dashboardPreset
: DashboardPreset
-
-
$userId
: int
-
-
$title
: string
= ''
-
delete()
public
delete(Dashboard $dashboard) : void
Parameters
-
$dashboard
: Dashboard
-
getDashboardByIdentifier()
public
getDashboardByIdentifier(string $identifier) : Dashboard|null
Parameters
-
$identifier
: string
-
getDashboardsForUser()
public
getDashboardsForUser(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
Return values
array<string|int, mixed>
updateDashboardSettings()
public
updateDashboardSettings(string $identifier, array<string|int, mixed> $values) : int|null
Parameters
-
$identifier
: string
-
-
$values
: array<string|int, mixed>
-
public
updateWidgetConfig(Dashboard $dashboard, array<string|int, string> $widgets) : void
Parameters
-
$dashboard
: Dashboard
-
-
$widgets
: array<string|int, string>
-
checkAllowedFields()
protected
checkAllowedFields(array<string|int, mixed> $values) : array<string|int, mixed>
Parameters
-
$values
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
createFromRow()
protected
createFromRow(array<string|int, mixed> $row) : Dashboard
Parameters
-
$row
: array<string|int, mixed>
-
getQueryBuilder()
protected
getQueryBuilder() : QueryBuilder