UserPreferenceService
UserPreferenceService.php
:
19
User Preference Service.
This service provides methods for managing user preferences. It works in the context of a current User (obtained from the PermissionResolver).
Methods¶
getUserPreference() ¶
UserPreferenceService.php
:
41
Get currently logged user preference by key.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$userPreferenceName | string | - | - |
Return values
Tags
getUserPreferenceCount() ¶
UserPreferenceService.php
:
60
Get count of total preferences for currently logged user.
|
|
Return values
int
loadUserPreferences() ¶
UserPreferenceService.php
:
53
Get currently logged user preferences.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$offset | int | 0 |
the start offset for paging |
$limit | int | 25 |
the number of user preferences returned |
Return values
Tags
setUserPreference() ¶
UserPreferenceService.php
:
29
Set user preference.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$userPreferenceSetStructs | array<string|int, UserPreferenceSetStruct> | - | - |