class DashboardStatsService (View source)

The totals on the admin dashboard. Zone and record counts are null when they cannot be read, so the page still renders.

Methods

__construct(PDO $db, ConfigurationInterface $config, LoggerInterface $logger, UserRepository $users, UserGroupRepositoryInterface $groups, ZoneRepositoryInterface $zones, DnsBackendProvider $backend)

No description

array
stats(int $userId, bool $countAllUsers)

No description

Details

__construct(PDO $db, ConfigurationInterface $config, LoggerInterface $logger, UserRepository $users, UserGroupRepositoryInterface $groups, ZoneRepositoryInterface $zones, DnsBackendProvider $backend)

No description

Parameters

PDO $db
ConfigurationInterface $config
LoggerInterface $logger
UserRepository $users
UserGroupRepositoryInterface $groups
ZoneRepositoryInterface $zones
DnsBackendProvider $backend

array stats(int $userId, bool $countAllUsers)

No description

Parameters

int $userId
bool $countAllUsers

Whether the viewer may see other accounts; otherwise only their own is counted

Return Value

array