메소드 |
설명 |
|
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 ) |
|
|