phpDocumentor

CurrentUserConfigurationService implements CurrentUserConfigurationService

Class CurrentUserConfigurationService

Interfaces, Classes and Traits

CurrentUserConfigurationService
Interface CurrentUserConfigurationService

Table of Contents

$factory  : UserConfigurationFactory
$repository  : UserConfigurationRepository
$userId  : UserId|null
$userPreferences  : UserPreferences
__construct()  : mixed
CurrentUserConfigurationService constructor.
getValue()  : string|null
Returns a user configuration value for the current user, based on the given key and default value.
storeConfiguration()  : void
Stores a user configuration based on the given key and value.
getCurrentUserId()  : UserId

Properties

Methods

getValue()

Returns a user configuration value for the current user, based on the given key and default value.

public getValue(string $key[, string $default = null ]) : string|null
Parameters
$key : string
$default : string = null
Tags
inheritDoc
Return values
string|null

storeConfiguration()

Stores a user configuration based on the given key and value.

public storeConfiguration(string $key, string $value) : void
Parameters
$key : string
$value : string
Tags
inheritDoc
Return values
void

Search results