프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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 | |
리턴 | boolean | Returns true if the user is allowed to edit specified user |
public canManageAcl ( ) : boolean | ||
리턴 | boolean | Returns true if user is allowed to manage ACL |
public canRemoveUser ( |
||
$user | The user to remove | |
리턴 | boolean | Returns true if the user is allowed to remove specified user |
public fetchSettings ( ) : array | ||
리턴 | array | Returns all settings |
public getAccountId ( ) : integer | ||
리턴 | integer | Returns identifier of the Account |
public getAclRoles ( boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition | ||
$ignoreCache | boolean | Whether it shoud ignore cache |
리턴 | 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 |
리턴 | 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 |
리턴 | array |
public getLdapUsername ( ) : string | ||
리턴 | string | Returns LDAP username |
public hasAccessToEnvironment ( integer $envId ) : boolean | ||
$envId | integer | The identifier of the environment |
리턴 | boolean | Returns TRUE if the user has access to the specified environment |
public isAccountAdmin ( ) : boolean | ||
리턴 | boolean | Returns true if user is account admin |
public isAccountOwner ( ) : boolean | ||
리턴 | boolean | Returns true if user is account owner. |
public isAccountSuperAdmin ( ) : boolean | ||
리턴 | boolean | Returns true if user is account super admin |
public isFinAdmin ( ) : boolean | ||
리턴 | boolean | Returns true if user is Financial Admin |
public isScalrAdmin ( ) : boolean | ||
리턴 | boolean | Returns true if user is Scalr Admin |
public isTeamUser ( ) : boolean | ||
리턴 | 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 |
리턴 |
public setSetting ( string $name, string $value ) : |
||
$name | string | The name of the setting |
$value | string | The value |
리턴 |
public int $accountId | ||
리턴 | integer |
public DateTime $lastLogin | ||
리턴 | DateTime |
public int $loginAttempts | ||
리턴 | integer |