Method | Description | |
---|---|---|
__construct ( integer $userId = null ) | ||
getBackendUser ( integer $userId ) : |
Get a backend user | |
getEmail ( ) : string | Get email | |
getSetting ( string $key ) : mixed | Get a setting | |
getSettings ( ) : array | Get all settings at once | |
getUserId ( ) : integer | Get user id | |
loadUser ( integer $userId ) | Load the data for the given user |
Method | Description | |
---|---|---|
setEmail ( string $value ) | Set email | |
setUserId ( integer $value ) | Set user id |
public __construct ( integer $userId = null ) | ||
$userId | integer | If you provide a userId, the object will be loaded with the data for this user. |
public static getBackendUser ( integer $userId ) : |
||
$userId | integer | The users id in the backend. |
return |
public getSetting ( string $key ) : mixed | ||
$key | string | The name of the setting. |
return | mixed | The stored value, if the setting wasn't found null will be returned |
public getSettings ( ) : array | ||
return | array | An key-value-array with all settings for this user. |