Method | Description | |
---|---|---|
__construct ( |
||
deletePreference ( string $key ) | Removes a specific system preference | |
getPreference ( string $key ) : |
Returns a specific preference object | |
getPreferences ( ) : |
Returns all system preferences | |
getSystemPreferenceValue ( string $key ) : string | Returns a specific preference value | |
setSystemPreference ( string $key, string $value ) : |
Creates or updates a preference for a given user. |
public __construct ( |
||
$entityManager |
public deletePreference ( string $key ) | ||
$key | string | The key to delete |
public getPreference ( string $key ) : |
||
$key | string | The preference key to retrieve |
return | The preference object |
public getPreferences ( ) : |
||
return | An array of SystemPreference objects |
public getSystemPreferenceValue ( string $key ) : string | ||
$key | string | The preference key to retrieve |
return | string | The preference string |
public setSystemPreference ( string $key, string $value ) : |
||
$key | string | The key to set |
$value | string | The value to set |
return | The user preference |