public function hostingService::context_import

7.x-3.x hosting_server.service.inc public hostingService::context_import($context)
2 methods override hostingService::context_import()

File

server/hosting_server.service.inc, line 182
Define the base Hosting service class.

Class

hostingService

Code

public function context_import($context) {
  $this->available = 1;

  if ($this->has_port) {
    $this->port = $context->{$this->service . '_port'};
  }

  if ($this->has_restart_cmd) {
    $this->restart_cmd = $context->{$this->service . '_restart_cmd'};
  }
}