DashboardRepository

Internal

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

Properties

$allowedFields

protected array<string|int, string> $allowedFields = ['title']

$container read-only

protected ContainerInterface $container

Methods

getDashboardByIdentifier()

public getDashboardByIdentifier(string $identifier) : Dashboard|null
Parameters
$identifier : string
Return values
Dashboard|null

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>
Return values
int|null

updateWidgetConfig()

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>
Return values
Dashboard

        
On this page

Search results