PHP Class Scalr\Model\Entity\CloudCredentials

Author: N.V.
Inheritance: extends Scalr\Model\AbstractEntity, implements Scalr\DataType\ScopeInterface, implements Scalr\DataType\AccessPermissionsInterface
Exibir arquivo Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$_envBinds EnvironmentCloudCredentials[] Environments bindings
$_properties Scalr\Model\Collections\SettingsCollection Cloud credentials properties collection
$accountId integer Account id
$cloud string Cloud name
$description string Description
$envId integer Environment id
$id string CLoud credentials unique id
$name string Cloud credential name
$status string Cloud credentials status

Public Methods

Method Description
__clone ( ) Reset cloud credentials id on clone
__get ( string $name ) : mixed Magic getter.
bindEnvironment ( integer $envId ) : EnvironmentCloudCredentials Sets environment binding
bindToEnvironment ( Scalr_Environment $environment ) : CloudCredentials Binds current cloud credential to environment
cache ( ) Cache self in specified container
delete ( )
getEnabledStatuses ( ) : array Gets statuses logically considered as "enabled"
getScope ( )
getSettingCriteria ( string $name, string $value = null, array $criteria = null ) : array Gets filter criteria by the setting
hasAccessPermissions ( $user, $environment = null, $modify = null )
isEnabled ( ) : boolean Indicates whether cloud credentials are enabled
isUsed ( )
release ( ) Releases cached self in DI
save ( )

Method Details

__clone() public method

Reset cloud credentials id on clone
public __clone ( )

__get() public method

Gets the values of the properties that require initialization.
public __get ( string $name ) : mixed
$name string Property name
return mixed Requested property

bindEnvironment() public method

Sets environment binding
public bindEnvironment ( integer $envId ) : EnvironmentCloudCredentials
$envId integer Environment identifier
return EnvironmentCloudCredentials Returns new binding

bindToEnvironment() public method

Binds current cloud credential to environment
public bindToEnvironment ( Scalr_Environment $environment ) : CloudCredentials
$environment Scalr_Environment Environment which linked credentials
return CloudCredentials

cache() public method

Cache self in specified container
public cache ( )

delete() public method

See also: AbstractEntity::delete()
public delete ( )

getEnabledStatuses() public static method

Gets statuses logically considered as "enabled"
public static getEnabledStatuses ( ) : array
return array

getScope() public method

See also: ScopeInterface::getScope()
public getScope ( )

getSettingCriteria() public method

Gets filter criteria by the setting
public getSettingCriteria ( string $name, string $value = null, array $criteria = null ) : array
$name string Setting name
$value string optional Setting value
$criteria array optional Criteria, if already exists
return array Returns extended criteria

hasAccessPermissions() public method

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

isEnabled() public method

Indicates whether cloud credentials are enabled
public isEnabled ( ) : boolean
return boolean Returns true if cloud credentials consider as enabled, false otherwise

isUsed() public method

public isUsed ( )

release() public method

Releases cached self in DI
public release ( )

save() public method

See also: AbstractEntity::save()
public save ( )

Property Details

$_envBinds public_oe property

Environments bindings
public EnvironmentCloudCredentials[] $_envBinds
return EnvironmentCloudCredentials[]

$_properties public_oe property

Cloud credentials properties collection
public SettingsCollection,Scalr\Model\Collections $_properties
return Scalr\Model\Collections\SettingsCollection

$accountId public_oe property

Account id
public int $accountId
return integer

$cloud public_oe property

Cloud name
public string $cloud
return string

$description public_oe property

Description
public string $description
return string

$envId public_oe property

Environment id
public int $envId
return integer

$id public_oe property

CLoud credentials unique id
public string $id
return string

$name public_oe property

Cloud credential name
public string $name
return string

$status public_oe property

Cloud credentials status
public string $status
return string