Свойство | 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 |
Méthode | 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 | |
Résultat | boolean | Returns true if the user is allowed to edit specified user |
public canManageAcl ( ) : boolean | ||
Résultat | boolean | Returns true if user is allowed to manage ACL |
public canRemoveUser ( |
||
$user | The user to remove | |
Résultat | boolean | Returns true if the user is allowed to remove specified user |
public fetchSettings ( ) : array | ||
Résultat | array | Returns all settings |
public getAccount ( ) : |
||
Résultat |
public getAccountId ( ) : integer | ||
Résultat | integer | Returns identifier of the Account |
public getAclRoles ( boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition | ||
$ignoreCache | boolean | Whether it shoud ignore cache |
Résultat | 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 |
Résultat | 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 |
Résultat | array |
public getLdapUsername ( ) : string | ||
Résultat | string | Returns LDAP username |
public hasAccessToEnvironment ( integer $envId ) : boolean | ||
$envId | integer | The identifier of the environment |
Résultat | boolean | Returns TRUE if the user has access to the specified environment |
public isAccountAdmin ( ) : boolean | ||
Résultat | boolean | Returns true if user is account admin |
public isAccountOwner ( ) : boolean | ||
Résultat | boolean | Returns true if user is account owner. |
public isAccountSuperAdmin ( ) : boolean | ||
Résultat | boolean | Returns true if user is account super admin |
public isFinAdmin ( ) : boolean | ||
Résultat | boolean | Returns true if user is Financial Admin |
public isScalrAdmin ( ) : boolean | ||
Résultat | boolean | Returns true if user is Scalr Admin |
public isTeamUser ( ) : boolean | ||
Résultat | 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 |
Résultat |
public setSetting ( string $name, string $value ) : |
||
$name | string | The name of the setting |
$value | string | The value |
Résultat |
public int $accountId | ||
Résultat | integer |
public DateTime $created | ||
Résultat | DateTime |
public DateTime $lastLogin | ||
Résultat | DateTime |
public int $loginAttempts | ||
Résultat | integer |