PHP Class Scalr\Server\Import\AbstractServerImport

Since: 5.11.5 (22.01.2016)
Author: Igor Vodiasov ([email protected])
Inheritance: implements Scalr\Server\Import\ServerImportInterface
Show file Open project: scalr/scalr Class Usage Examples

Protected Properties

Property Type Description
$db ADODB_mysqli
$farmRole Scalr\Model\Entity\FarmRole
$orphaned Scalr\Modules\Platforms\OrphanedServer
$server Scalr\Model\Entity\Server
$tags array
$user Scalr\Model\Entity\Account\User

Public Methods

Method Description
__construct ( FarmRole $farmRole, User $user ) Constructor
import ( $instanceId, $tags = [] )

Protected Methods

Method Description
applyTags ( ) Apply meta-tag to instance on cloud
importServer ( ) Fill cloud-specific parameters
validate ( ) Check if instances are valid

Method Details

__construct() public method

Constructor
public __construct ( FarmRole $farmRole, User $user )
$farmRole Scalr\Model\Entity\FarmRole The Farm Role entity
$user Scalr\Model\Entity\Account\User The User entity

applyTags() abstract protected method

Apply meta-tag to instance on cloud
abstract protected applyTags ( )

import() public method

See also: ServerImportInterface::import()
public import ( $instanceId, $tags = [] )

importServer() abstract protected method

Fill cloud-specific parameters
abstract protected importServer ( )

validate() protected method

Check if instances are valid
protected validate ( )

Property Details

$db protected property

protected ADODB_mysqli $db
return ADODB_mysqli

$farmRole protected property

protected FarmRole,Scalr\Model\Entity $farmRole
return Scalr\Model\Entity\FarmRole

$orphaned protected property

protected OrphanedServer,Scalr\Modules\Platforms $orphaned
return Scalr\Modules\Platforms\OrphanedServer

$server protected property

protected Server,Scalr\Model\Entity $server
return Scalr\Model\Entity\Server

$tags protected property

protected array $tags
return array

$user protected property

protected User,Scalr\Model\Entity\Account $user
return Scalr\Model\Entity\Account\User