PHP Класс Scalr\Modules\AbstractPlatformModule

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$container Scalr\DependencyInjection\Container DI Container
$db ADODB_mysqli
$platform

Открытые методы

Метод Описание
ResumeServer ( DBServer $DBServer )
__construct ( )
getConfigVariable ( string $name, Scalr_Environment $env, string $encrypted = true, string $cloudLocation = '' ) : string Gets platform property
getContainer ( ) : Container Gets DI container
getEndpointUrl ( Scalr_Environment $env, string $group = null ) : string | null Gets endpoint url for private clouds
getImageInfo ( Scalr_Environment $environment, $cloudLocation, $imageId )
getInstanceType ( $instanceTypeId, Scalr_Environment $env, $cloudLocation = null )
getOrphanedServers ( Environment $environment, $cloudLocation, $instanceIds = null )
hasCloudPrices ( Scalr_Environment $env )
setConfigVariable ( array $pars, Scalr_Environment $env, string $encrypted = true, string $cloudLocation = '' ) Sets the values for the specified platform properties

Защищенные методы

Метод Описание
getCachedInstanceTypes ( string $platform, string $url, string $cloudLocation ) : ArrayCollection | boolean Gets active instance types for the specified cloud platform, url and location from the cache

Описание методов

ResumeServer() публичный Метод

public ResumeServer ( DBServer $DBServer )
$DBServer DBServer

__construct() публичный Метод

public __construct ( )

getCachedInstanceTypes() защищенный Метод

Gets active instance types for the specified cloud platform, url and location from the cache
protected getCachedInstanceTypes ( string $platform, string $url, string $cloudLocation ) : ArrayCollection | boolean
$platform string A cloud platform
$url string A cloud endpoint url
$cloudLocation string A cloud location
Результат Scalr\Model\Collections\ArrayCollection | boolean Returns collection of the CloudInstanceType entities on success or false otherwise

getConfigVariable() публичный Метод

Gets platform property
Устаревший: by cloud credentials
public getConfigVariable ( string $name, Scalr_Environment $env, string $encrypted = true, string $cloudLocation = '' ) : string
$name string The name of the platform property
$env Scalr_Environment The environment
$encrypted string optional This is ignored
$cloudLocation string optional The cloud location
Результат string Returns the value of the specified platform property

getContainer() публичный Метод

Gets DI container
public getContainer ( ) : Container
Результат Scalr\DependencyInjection\Container Returns DI container

getEndpointUrl() публичный Метод

Gets endpoint url for private clouds
public getEndpointUrl ( Scalr_Environment $env, string $group = null ) : string | null
$env Scalr_Environment The scalr environment object
$group string optional The group name
Результат string | null Returns endpoint url for private clouds. Null otherwise.

getImageInfo() публичный Метод

См. также: PlatformModuleInterface::getImageInfo()
public getImageInfo ( Scalr_Environment $environment, $cloudLocation, $imageId )
$environment Scalr_Environment

getInstanceType() публичный Метод

См. также: Scalr\Modules\PlatformModuleInterface::getInstanceType()
public getInstanceType ( $instanceTypeId, Scalr_Environment $env, $cloudLocation = null )
$env Scalr_Environment

getOrphanedServers() публичный Метод

См. также: Scalr\Modules\PlatformModuleInterface::getOrphanedServers()
public getOrphanedServers ( Environment $environment, $cloudLocation, $instanceIds = null )
$environment Scalr\Model\Entity\Account\Environment

hasCloudPrices() публичный Метод

См. также: Scalr\Modules\PlatformModuleInterface::hasCloudPrices()
public hasCloudPrices ( Scalr_Environment $env )
$env Scalr_Environment

setConfigVariable() публичный Метод

Sets the values for the specified platform properties
Устаревший: by cloud credentials
public setConfigVariable ( array $pars, Scalr_Environment $env, string $encrypted = true, string $cloudLocation = '' )
$pars array Associative array of the keys -> value
$env Scalr_Environment The environment object
$encrypted string optional This parameter is already ignored
$cloudLocation string The cloud location

Описание свойств

$container защищенное свойство

DI Container
protected Container,Scalr\DependencyInjection $container
Результат Scalr\DependencyInjection\Container

$db защищенное свойство

protected ADODB_mysqli $db
Результат ADODB_mysqli

$platform защищенное свойство

protected $platform