PHP Class Scalr\Api\Service\User\V1beta0\Adapter\RoleAdapter

Since: 5.4.0 (05.03.2015)
Author: Vitaliy Demidov ([email protected])
Inheritance: extends Scalr\Api\DataType\ApiEntityAdapter
Datei anzeigen Open project: scalr/scalr Class Usage Examples

Protected Properties

Property Type Description
$entityClass string Entity class name
$rules array Converter rules
$supportedBehaviors

Public Methods

Method Description
behaviorsToData ( array $behaviors ) : array Transforms internal names of given behaviors to use in API
behaviorsToEntity ( array $behaviors, boolean $onlySupported = true ) : array Transforms given names of behaviors used in API to internal representation
validateEntity ( $entity )
validateObject ( $object, $method = null )

Protected Methods

Method Description
_builtinAutomation ( $from, $to, $action )
_category ( $from, $to, $action )
_os ( $from, $to, $action )
_scope ( $from, $to, $action )

Method Details

_builtinAutomation() protected method

protected _builtinAutomation ( $from, $to, $action )

_category() protected method

protected _category ( $from, $to, $action )

_os() protected method

protected _os ( $from, $to, $action )

_scope() protected method

protected _scope ( $from, $to, $action )

behaviorsToData() public static method

Transforms internal names of given behaviors to use in API
public static behaviorsToData ( array $behaviors ) : array
$behaviors array Array of a Role behaviors
return array Returns an array of names of behaviors

behaviorsToEntity() public static method

Transforms given names of behaviors used in API to internal representation
public static behaviorsToEntity ( array $behaviors, boolean $onlySupported = true ) : array
$behaviors array Array of a Role behaviors
$onlySupported boolean optional Converts only available to users behavior
return array Returns an array of names of behaviors

validateEntity() public method

See also: Scalr\Api\DataType\ApiEntityAdapter::validateEntity()
public validateEntity ( $entity )

validateObject() public method

See also: Scalr\Api\DataType\ApiEntityAdapter::validateObject()
public validateObject ( $object, $method = null )

Property Details

$entityClass protected_oe property

Entity class name
protected string $entityClass
return string

$rules protected_oe property

Converter rules
protected array $rules
return array

$supportedBehaviors protected_oe static_oe property

protected static $supportedBehaviors