Property | Type | Description | |
---|---|---|---|
$accountId | integer | Identifier of the account which User corresponds to | |
$comments | string | The comments | |
$created | DateTime | The timestamp when the record is created | |
string | The email address of the user | ||
$fullName | string | The full name of the User | |
$id | integer | The identifier of the User | |
$lastLogin | DateTime | The last timemestamp when the User signed in | |
$loginAttempts | integer | The number of failed sign-in attempts | |
$password | string | The password | |
$status | string | The status of the User | |
$type | string | The type |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
applyLdapGroups ( $groups ) | Special method for LDAP auth sync LDAP groups to Scalr groups | |
canEditUser ( |
Checks whether the user is allowed to edit specified user | |
canManageAcl ( ) : boolean | Checks whether the user is allowed to manage ACL | |
canRemoveUser ( |
Checks whether the user is allowed to remove specified user | |
fetchSettings ( ) : array | Fetches all settings from the database | |
getAccount ( ) : |
Gets account entity | |
getAccountId ( ) : integer | Gets Identifier of the Account | |
getAclRoles ( boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition | Gets account level roles | |
getAclRolesByEnvironment ( integer $envId, boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition | Gets roles by specified identifier of the Environment | |
getEmail ( ) : string | Gets email address of the User | |
getEnvironments ( string $filter = null ) : array | Gets environments of the current user filtered by name | |
getId ( ) : integer | Gets Identifier of the User | |
getLdapUsername ( ) : string | Gets LDAP username of the User | |
getSetting ( string $name, boolean $useCache = true ) : string | null | Gets specified setting | |
getTeams ( ) : array | Gets user teams | |
hasAccessToEnvironment ( integer $envId ) : boolean | Checks whether this user has access to the specified environment | |
inTeam ( integer $teamId ) : boolean | Check if user is included in team | |
isAccountAdmin ( ) : boolean | Checks if the user is account admin | |
isAccountOwner ( ) : boolean | Checks if the user is account owher | |
isAccountSuperAdmin ( ) : boolean | Checks if the user is account admin | |
isAdmin ( ) : boolean | Checks if the user is admin user (scalr, financial). It means user doesn't have current environment | |
isFinAdmin ( ) : boolean | Checks if the user is Financial admin | |
isScalrAdmin ( ) : boolean | Checks if the user is Scalr admin | |
isTeamUser ( ) : boolean | Checks if the user is team user | |
isUser ( ) : boolean | Checks if the user is account user (owner, admin, team user) | |
saveSetting ( string $name, string $value ) : |
Saves the value of the specified setting to the database | |
setSetting ( string $name, string $value ) : |
Sets the value of the specified setting |
public applyLdapGroups ( $groups ) | ||
$groups |
public canEditUser ( |
||
$user | The user to edit | |
return | boolean | Returns true if the user is allowed to edit specified user |
public canManageAcl ( ) : boolean | ||
return | boolean | Returns true if user is allowed to manage ACL |
public canRemoveUser ( |
||
$user | The user to remove | |
return | boolean | Returns true if the user is allowed to remove specified user |
public fetchSettings ( ) : array | ||
return | array | Returns all settings |
public getAccount ( ) : |
||
return |
public getAccountId ( ) : integer | ||
return | integer | Returns identifier of the Account |
public getAclRoles ( boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition | ||
$ignoreCache | boolean | Whether it shoud ignore cache |
return | Scalr\Acl\Role\AccountRoleSuperposition | Returns the list of the roles of account level |
public getAclRolesByEnvironment ( integer $envId, boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition | ||
$envId | integer | The identifier of the Environment |
$ignoreCache | boolean | optional Whether it should ignore cache |
return | Scalr\Acl\Role\AccountRoleSuperposition | Returns the list of the roles of account level by specified environment |
public getEnvironments ( string $filter = null ) : array | ||
$filter | string | optional Filter string |
return | array |
public getLdapUsername ( ) : string | ||
return | string | Returns LDAP username |
public hasAccessToEnvironment ( integer $envId ) : boolean | ||
$envId | integer | The identifier of the environment |
return | boolean | Returns TRUE if the user has access to the specified environment |
public isAccountAdmin ( ) : boolean | ||
return | boolean | Returns true if user is account admin |
public isAccountOwner ( ) : boolean | ||
return | boolean | Returns true if user is account owner. |
public isAccountSuperAdmin ( ) : boolean | ||
return | boolean | Returns true if user is account super admin |
public isFinAdmin ( ) : boolean | ||
return | boolean | Returns true if user is Financial Admin |
public isScalrAdmin ( ) : boolean | ||
return | boolean | Returns true if user is Scalr Admin |
public isTeamUser ( ) : boolean | ||
return | boolean | Returns true if user is team user |
public saveSetting ( string $name, string $value ) : |
||
$name | string | The name of the setting |
$value | string | The value |
return |
public setSetting ( string $name, string $value ) : |
||
$name | string | The name of the setting |
$value | string | The value |
return |
public int $accountId | ||
return | integer |
public DateTime $created | ||
return | DateTime |
public DateTime $lastLogin | ||
return | DateTime |
public int $loginAttempts | ||
return | integer |