PHP Class Scalr\Server\Import\AbstractServerImport

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

Protected Properties

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

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

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

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

import() public méthode

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

importServer() abstract protected méthode

Fill cloud-specific parameters
abstract protected importServer ( )

validate() protected méthode

Check if instances are valid
protected validate ( )

Property Details

$db protected_oe property

protected ADODB_mysqli $db
Résultat ADODB_mysqli

$farmRole protected_oe property

protected FarmRole,Scalr\Model\Entity $farmRole
Résultat Scalr\Model\Entity\FarmRole

$orphaned protected_oe property

protected OrphanedServer,Scalr\Modules\Platforms $orphaned
Résultat Scalr\Modules\Platforms\OrphanedServer

$server protected_oe property

protected Server,Scalr\Model\Entity $server
Résultat Scalr\Model\Entity\Server

$tags protected_oe property

protected array $tags
Résultat array

$user protected_oe property

protected User,Scalr\Model\Entity\Account $user
Résultat Scalr\Model\Entity\Account\User