Метод | Описание | |
---|---|---|
__construct ( |
||
deletePreference ( |
Removes a specific setting for a specific user. | |
deletePreferences ( |
Removes all preferences for specific user. This is usually used when removing the user. | |
getPreference ( |
Returns a specific preference object for the given user. | |
getPreferenceValue ( |
Returns a specific preference value for the given user. | |
getPreferences ( |
Returns all preferences for the given user. | |
setPreference ( |
Creates or updates a preference for a given user. |
public __construct ( |
||
$entityManager |
public deletePreference ( |
||
$user | The user to delete the preference for | |
$key | string | The key to delete |
public deletePreferences ( |
||
$user | The user to delete the preference for |
public getPreference ( |
||
$user | The user to retrieve the preference for | |
$key | string | The preference key to retrieve |
Результат | The preference object |
public getPreferenceValue ( |
||
$user | The user to retrieve the preference for | |
$key | string | The preference key to retrieve |
Результат | string | The preference string |
public getPreferences ( |
||
$user | The user | |
Результат | An array of UserPreference objects |
public setPreference ( |
||
$user | The user to set the preference for | |
$key | string | The key to set |
$value | string | The value to set |
Результат | The user preference |