Property | Type | Description | |
---|---|---|---|
$accountId | |||
$comments | |||
$dtCreated | |||
$dtLastLogin | |||
$fullname | |||
$loginattempts | |||
$status | |||
$type |
Property | Type | Description | |
---|---|---|---|
$account | |||
$dbMessageKeyNotFound | |||
$dbPrimaryKey | |||
$dbPropertyMap | |||
$dbTableName | |||
$password | |||
$permissions | |||
$settingsCache | |||
$varCache |
Method | Description | |
---|---|---|
addDashboardWidget ( integer $envId, array $widgetConfig, integer $columnNumber, integer $position ) | Adds widget to dashboard | |
applyLdapGroups ( $groups ) | Special method for LDAP auth sync LDAP groups to Scalr groups | |
canEditUser ( Scalr_Account_User $user ) : boolean | Checks whether the user is allowed to edit specified user | |
canManageAcl ( ) : boolean | Checks whether the user is allowed to manage ACL | |
canRemoveUser ( Scalr_Account_User $user ) : boolean | Checks whether the user is allowed to remove specified user | |
checkPassword ( string $pwd, boolean $updateLoginAttempt = true ) : boolean | Checks password | |
create ( $email, $accountId ) | ||
delete ( $id = null ) | ||
getAccount ( ) : Scalr_Account | ||
getAccountId ( ) | ||
getAclRoles ( boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition | Gets account level roles for the user | |
getAclRolesByEnvironment ( integer $envId, boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition | Gets roles by specified ID of environment | |
getAclRolesByTeam ( integer $teamId ) : Scalr\Acl\Role\AccountRoleSuperposition | Gets roles by specified ID of team | |
getDashboard ( integer $envId ) : array | Get user dashboard | |
getDefaultEnvironment ( integer $envId ) : Scalr_Environment | Gets environment object for the specified identifier. | |
getEmail ( ) : string | Gets email address of the User | |
getEnvironments ( string $filter = null, boolean $orderByPriority = false ) : array | Gets environments of the current user filtered by name | |
getGravatarHash ( ) | ||
getId ( ) : integer | Gets effective user identifier | |
getLdapUsername ( ) : string | Gets LDAP username of the User | |
getList ( $accountId ) | ||
getPermissions ( ) : Scalr_Permissions | Gets scalr permission object | |
getSetting ( string $name, boolean $ignoreCache = false ) : mixed | Returns user setting value by name | |
getSshConsoleSettings ( $ignoreCache = false, $gvi = false, $serverId = null ) | ||
getTeams ( ) : array | ||
getType ( ) | ||
getUserInfo ( ) | ||
getVar ( string $name, boolean $ignoreCache = false ) : mixed | Returns user var value by name | |
init ( $className = null ) : Scalr_Account_User | ||
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 | |
isEmailExists ( $email ) | ||
isFinAdmin ( ) : boolean | Checks if the user is Financial admin | |
isInTeam ( integer $teamId ) : boolean | Check if user is included in team | |
isLeadVerified ( ) : boolean | ||
isScalrAdmin ( ) : boolean | Checks if the user is Scalr admin | |
isSubjectLead ( string $projectId = null, string $ccId = null ) : boolean | Checks if user has access to project or cost center | |
isTeamOwner ( integer $teamId = null ) : boolean | Checks wheter this user is considered to be the team owner for the specified team. | |
isTeamOwnerInEnvironment ( integer $envId ) : boolean | Checks if the user is both AccountAdmin and member of the specified environment | |
isTeamUser ( ) : boolean | Checks if the user is team user | |
isUser ( ) : boolean | Checks if the user is account user (owner, admin, team user) | |
loadByApiAccessKey ( string $accessKey ) : Scalr_Account_User | Loads user by the specified access key | |
loadByEmail ( string $email, $accountId = null ) : Scalr_Account_User | Loads user by an email | |
loadBySetting ( string $name, string $value ) : Scalr_Account_User | Loads user by the specified unique setting | |
save ( $forceInsert = false ) | ||
setAclRoles ( array $data = [] ) | Sets ACL roles to this user | |
setDashboard ( integer $envId, array $value ) | Set user dashboard | |
setSetting ( string $name, mixed $value ) : void | Set user setting | |
setSshConsoleSettings ( $settings ) | ||
setVar ( string $name, mixed $value ) : void | Set user var | |
updateEmail ( $email ) | ||
updateLastLogin ( ) | ||
updateLoginAttempt ( integer | null $loginattempt = null ) | Increases or resets the number of attempts to sign in | |
updatePassword ( $pwd ) |
public applyLdapGroups ( $groups ) | ||
$groups |
public canEditUser ( Scalr_Account_User $user ) : boolean | ||
$user | Scalr_Account_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 ( Scalr_Account_User $user ) : boolean | ||
$user | Scalr_Account_User | The user to remove |
return | boolean | Returns true if the user is allowed to remove specified user |
public getAclRoles ( boolean $ignoreCache = false ) : Scalr\Acl\Role\AccountRoleSuperposition | ||
$ignoreCache | boolean | |
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 ID of the client's environment |
$ignoreCache | boolean | optional Ignore cache. |
return | Scalr\Acl\Role\AccountRoleSuperposition | Returns the list of the roles of account level by specified environment |
public getAclRolesByTeam ( integer $teamId ) : Scalr\Acl\Role\AccountRoleSuperposition | ||
$teamId | integer | The ID of the team |
return | Scalr\Acl\Role\AccountRoleSuperposition | Returns the list of the roles of account level by specified team |
public getDashboard ( integer $envId ) : array | ||
$envId | integer | |
return | array |
public getDefaultEnvironment ( integer $envId ) : Scalr_Environment | ||
$envId | integer | optional The identifier of the Environment |
return | Scalr_Environment | Returns Environment object |
public getLdapUsername ( ) : string | ||
return | string | Returns user LDAP username |
public getPermissions ( ) : Scalr_Permissions | ||
return | Scalr_Permissions |
public getSshConsoleSettings ( $ignoreCache = false, $gvi = false, $serverId = null ) |
public static init ( $className = null ) : Scalr_Account_User | ||
return | Scalr_Account_User |
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 isLeadVerified ( ) : boolean | ||
return | boolean | Returns true if lead is verified |
public isScalrAdmin ( ) : boolean | ||
return | boolean | Returns true if user is Scalr Admin |
public isTeamOwner ( integer $teamId = null ) : boolean | ||
$teamId | integer | The identifier of the team. |
return | boolean | Returns true if the user is considered to be the team owner for the specified team. |
public isTeamOwnerInEnvironment ( integer $envId ) : boolean | ||
$envId | integer | The identifier of the environment |
return | boolean |
public isTeamUser ( ) : boolean | ||
return | boolean | Returns true if user is team user |
public loadByApiAccessKey ( string $accessKey ) : Scalr_Account_User | ||
$accessKey | string | An access key |
return | Scalr_Account_User |
public loadByEmail ( string $email, $accountId = null ) : Scalr_Account_User | ||
string | The email of the user | |
return | Scalr_Account_User |
public loadBySetting ( string $name, string $value ) : Scalr_Account_User | ||
$name | string | The setting name |
$value | string | The value |
return | Scalr_Account_User |
public setAclRoles ( array $data = [] ) | ||
$data | array | ACL roles array which looks like array(teamId => array(accountRoleId1, accountRoleId2, ...)) |
public setDashboard ( integer $envId, array $value ) | ||
$envId | integer | |
$value | array |
public updateLoginAttempt ( integer | null $loginattempt = null ) | ||
$loginattempt | integer | null | optional The number to increase |