Свойство | Type | Description | |
---|---|---|---|
$envId | |||
$user |
Méthode | Description | |
---|---|---|
__construct ( Scalr_Account_User $user ) | ||
check ( $object ) | ||
hasAccessEnvironment ( integer $envId ) : boolean | Checks whether specified environment corresponds the user's environment. | |
hasAccessFarm ( DBFarm $dbFarm, string $perm = null ) : boolean | Checks whether current dbFarm object can be accessed by user | |
hasAccessServer ( DBServer $dbServer ) : boolean | Checks whether specified server can be accessed by the user | |
hasReadOnlyAccessServer ( DBServer $dbServer ) : boolean | Checks whether user read only access to specified server | |
setEnvironmentId ( integer $envId ) : Scalr_Permissions | Sets Environment Id | |
validate ( $object ) |
public __construct ( Scalr_Account_User $user ) | ||
$user | Scalr_Account_User |
public hasAccessEnvironment ( integer $envId ) : boolean | ||
$envId | integer | The ID of the environment |
Résultat | boolean | Returns true if user's environment equals to specified environment |
public hasAccessFarm ( DBFarm $dbFarm, string $perm = null ) : boolean | ||
$dbFarm | DBFarm | DbFarm object |
$perm | string | |
Résultat | boolean | Returns true if access is granted |
public hasAccessServer ( DBServer $dbServer ) : boolean | ||
$dbServer | DBServer | The DBServer object |
Résultat | boolean | Returns true if specified server can be accessed by the user |
public hasReadOnlyAccessServer ( DBServer $dbServer ) : boolean | ||
$dbServer | DBServer | The DBServer object |
Résultat | boolean | Returns true if specified server can be accessed by the user |
public setEnvironmentId ( integer $envId ) : Scalr_Permissions | ||
$envId | integer | |
Résultat | Scalr_Permissions |