Check if given name is used on scalr, account or environment scopes
public static isNameUsed ( string $name, integer $accountId, integer $envId, integer $ignoreRoleId = null ) : boolean | ||
$name | string | Role's name to check |
$accountId | integer | Identifier of account |
$envId | integer | Identifier of environment |
$ignoreRoleId | integer | Role id to ignore |
Résultat | boolean | Returns TRUE if a such name has been already used on scalr or account (or environment) scopes |