class UserTimezoneService (View source)

Methods

__construct(UserPreferenceService $preferenceService, ConfigurationInterface $config)

No description

string
getEffectiveTimezone(int|null $userId)

No description

void
clearCache()

No description

createDefault(PDO $db, ConfigurationManager $config)

Build a UserTimezoneService wired to the standard DB-backed preference repository. Shortcut for the many call sites that have a PDO connection and config available but no service container.

Details

__construct(UserPreferenceService $preferenceService, ConfigurationInterface $config)

No description

Parameters

UserPreferenceService $preferenceService
ConfigurationInterface $config

string getEffectiveTimezone(int|null $userId)

No description

Parameters

int|null $userId

Return Value

string

void clearCache()

No description

Return Value

void

static UserTimezoneService createDefault(PDO $db, ConfigurationManager $config)

Build a UserTimezoneService wired to the standard DB-backed preference repository. Shortcut for the many call sites that have a PDO connection and config available but no service container.

Parameters

PDO $db
ConfigurationManager $config

Return Value

UserTimezoneService