PHP Class Scalr\Model\Entity\RoleCategory

Since: 5.4.0 (05.03.2015)
Author: Vitaliy Demidov ([email protected])
Inheritance: extends Scalr\Model\AbstractEntity, implements Scalr\DataType\ScopeInterface, implements Scalr\DataType\AccessPermissionsInterface
Show file Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$accountId integer The identifier of the client's account
$envId integer The identifier of the Environment
$id integer Identifier of the Role Category
$name string The name of the Role Category

Public Methods

Method Description
getScope ( )
getUsed ( ) : integer | false Returns category usage
hasAccessPermissions ( $user, $environment = null, $modify = null )

Method Details

getScope() public method

See also: Scalr\DataType\ScopeInterface::getScope()
public getScope ( )

getUsed() public method

Returns category usage
public getUsed ( ) : integer | false
return integer | false Number of roles using this category or false

hasAccessPermissions() public method

See also: Scalr\DataType\AccessPermissionsInterface::hasAccessPermissions()
public hasAccessPermissions ( $user, $environment = null, $modify = null )

Property Details

$accountId public property

The identifier of the client's account
public int $accountId
return integer

$envId public property

The identifier of the Environment
public int $envId
return integer

$id public property

Identifier of the Role Category
public int $id
return integer

$name public property

The name of the Role Category
public string $name
return string