PHP Class Scalr\Model\Entity\CloudCredentials

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

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

Reset cloud credentials id on clone
public __clone ( )

__get() public méthode

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

bindEnvironment() public méthode

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

bindToEnvironment() public méthode

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

cache() public méthode

Cache self in specified container
public cache ( )

delete() public méthode

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

getEnabledStatuses() public static méthode

Gets statuses logically considered as "enabled"
public static getEnabledStatuses ( ) : array
Résultat array

getScope() public méthode

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

getSettingCriteria() public méthode

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
Résultat array Returns extended criteria

hasAccessPermissions() public méthode

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

isEnabled() public méthode

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

isUsed() public méthode

public isUsed ( )

release() public méthode

Releases cached self in DI
public release ( )

save() public méthode

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

Property Details

$_envBinds public_oe property

Environments bindings
public EnvironmentCloudCredentials[] $_envBinds
Résultat EnvironmentCloudCredentials[]

$_properties public_oe property

Cloud credentials properties collection
public SettingsCollection,Scalr\Model\Collections $_properties
Résultat Scalr\Model\Collections\SettingsCollection

$accountId public_oe property

Account id
public int $accountId
Résultat integer

$cloud public_oe property

Cloud name
public string $cloud
Résultat string

$description public_oe property

Description
public string $description
Résultat string

$envId public_oe property

Environment id
public int $envId
Résultat integer

$id public_oe property

CLoud credentials unique id
public string $id
Résultat string

$name public_oe property

Cloud credential name
public string $name
Résultat string

$status public_oe property

Cloud credentials status
public string $status
Résultat string