Scalr_Net_Scalarizr_Client::__construct PHP Method

__construct() public method

public __construct ( DBServer $dbServer, $port = 8010 )
$dbServer DBServer
    public function __construct(DBServer $dbServer, $port = 8010)
    {
        $this->dbServer = $dbServer;
        $this->port = $port;
        if ($this->dbServer->farmId) {
            if (DBFarm::LoadByID($this->dbServer->farmId)->GetSetting(Entity\FarmSetting::EC2_VPC_ID)) {
                $this->isVPC = true;
            }
        }
        $this->cryptoTool = \Scalr::getContainer()->srzcrypto($this->dbServer->GetKey(true));
    }

Usage Example

Example #1
0
 public function __construct(DBServer $dbServer, $port = 8010)
 {
     $this->namespace = "postgresql";
     parent::__construct($dbServer, $port);
 }
All Usage Examples Of Scalr_Net_Scalarizr_Client::__construct