You are here

public function hostingService::context_import in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 server/hosting_server.service.inc \hostingService::context_import()
  2. 7.3 server/hosting_server.service.inc \hostingService::context_import()
2 calls to hostingService::context_import()
hostingService_db_mysql::context_import in db_server/hosting_db_server.service.inc
hostingService_http_ssl::context_import in web_server/ssl/hosting_ssl.service.inc
2 methods override hostingService::context_import()
hostingService_db_mysql::context_import in db_server/hosting_db_server.service.inc
hostingService_http_ssl::context_import in web_server/ssl/hosting_ssl.service.inc

File

server/hosting_server.service.inc, line 153

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'};
  }
}