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(LoggerInterface $logger, UserAdminInterface $users, UserGroupLookupInterface $groups, ZoneReadRepositoryInterface $zones, ZoneReadBackendInterface $backend, SessionInterface $session)

No description

array
stats(int $userId, bool $countAllUsers)

No description

Details

__construct(LoggerInterface $logger, UserAdminInterface $users, UserGroupLookupInterface $groups, ZoneReadRepositoryInterface $zones, ZoneReadBackendInterface $backend, SessionInterface $session)

No description

Parameters

LoggerInterface $logger
UserAdminInterface $users
UserGroupLookupInterface $groups
ZoneReadRepositoryInterface $zones
ZoneReadBackendInterface $backend
SessionInterface $session

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